views:

19

answers:

1

I was curious if it was possible to create hotkeys in a jApplet that are global for the applet...like a global key handler or something. For example, I would like to be able to press the key, 'F11' lets say, then have a jPanel appear, and then press 'f11' again to make it disappear... regardless of which component I'm focused on.I don't expect it to work when I'm not focused on the application, just within.

thanks.

A: 

You need to use Key Bindings.

camickr