Solved

Using Java JTree navigation menu, is...

Posted on 2000-05-10
6
244 Views
Last Modified: 2010-05-19
Using Java JTree navigation menu & frames in a browser: is there a way to track the pages being displayed in
ther target frame?

I would like the JTree to reflect where
in the site the user was at any minute,
even if they use the browser button. Have experimented with applet & cookies,
but got alot of strange errors using the
netscape.javascript.* package.

Any thoughts or assistance would be
appreciated and compensation is possible
for complete solutions.

Bill Rowe
webrep@yahoo.com
0
Comment
Question by:webrep
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 2796959
what about using 1 x 1 applets inside all pages that will inform the main applet about page name ... it will work fine if there is only one browser window pointed to that site (otherwise, you'll need some JavaScript)
0
 

Author Comment

by:webrep
ID: 2797537
Hi Heyhey,

Is inter-applet communication
reliable in your experience? If
so then this may be a solution.

Do you know how applets on different
frames would locate each other, that's
not browser specific?

Thanks in advance,
Bill Rowe

0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 2797832
according to my own experience ALL the browser JavaVM implementations use ClassLoader per URL - so if you load both applets from the same Codebase / Archive you can share static variables etc.
another option is AppletContext.getApplet() which is somewhat tricky (because both applets may be loaded from different classloaders, so you can exchange only 'standard' Java objects ...

but it seems that you'll always have problems if the user has opened several browsers to the same site ... maybe some JavaScript will help you ...

well - I can't give you code solution, but I'll help you if you have any problems ... that's an interesting question :)
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:webrep
ID: 2797952
Thank you here. I will give this
some additional thought....

Bill Rowe
webrep@yahoo.com
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2798010
ok

you can contact me at heyhey_@iname.com
0
 

Author Comment

by:webrep
ID: 2800680
Thank you very much for all
your hard work here.

Bill Rowe
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now