Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using Java JTree navigation menu, is...

Posted on 2000-05-10
6
Medium Priority
?
290 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 400 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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.
Suggested Courses

636 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