开发者

Shortcut Keys in Java

开发者 https://www.devze.com 2022-12-18 02:33 出处:网络
How could I (for example) maximize the window from tray icon when a specified key combination is pressed?

How could I (for example) maximize the window from tray icon when a specified key combination is pressed?

edit: So how can I detect for example when user presses Ctrl +开发者_如何学编程 M?


I think you should use some GUI event to detect the keyboard presses and the JNI (Java Native Interface) to maximize the window.

Look at this example about JNI and window maximization. You should look the guide of JNI too.

0

精彩评论

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

关注公众号