开发者

java applet hotkeys

开发者 https://www.devze.com 2023-01-03 23:04 出处:网络
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.

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.


You need to use Key Bindings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号