Link to home
Start Free TrialLog in
Avatar of kryzb
kryzb

asked on

Context-sensitive help...

Is there a way to pop up a relevant HTML help screen when pressing a key (F1) in a Java applet?

I've seen some discussion on this advising the use of HTML components, Swing text boxes and even Java browsers (e.g. ICE) but all I want to do is trigger a page from the browser I've currently got open.  The one that's running my applet.

Is this impossible?

Kryz.
ASKER CERTIFIED SOLUTION
Avatar of vladi21
vladi21

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of heyhey_
heyhey_

you have to
0. associate help URL for every component.
1. add keyListener to every component.
2. when user presses F1, you have to open the correct web page.

you have to solve 0 yourslef, 2 is easy, for 1 take a look at

http://www.javaworld.com/javaworld/javatips/jw-javatip72.html