Skip to main content

closing JavaHelp with ESCAPE

1 reply [Last post]
Anonymous

Hello,

where in JavaHelp can I add a keyListener to close the window, when pressing escape?

Bye,
Wolfgang
______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Wolfgang Wolf wrote:
> Hello,
>
> where in JavaHelp can I add a keyListener to close the window, when
> pressing escape?

If you're using a DefaultHelpBroker you can get accessing to the current
window. However, this is more complicated than you think because of
modal dialogs. The modals will cause a change in the containing JDialog
per modal dialog change. Probably not what you want.

If you're using your own frames and dialog for containers then you have
all the access that your need.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.