Solved

Using Java JTree navigation menu, is...

Posted on 2000-05-10
6
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

695 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