Java desktop app: How to maximize tray application when hotkey pressed?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2009-05-04T15:40:25Z Indexed on 2010/03/12 20:17 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

I need to write a program that, when minimized, lives in the System Tray, and I'll use Java 6's SystemTray API to do that.

How can I make that application comes to the foreground when the user presses some hotkey?

For example, the app is running but minimized. When the user presses CTRL-SHIFT-Y or something (or, like Google Desktop's search, CTRL twice) and the application is maximized.

EDIT: I know about how to bring a Java window to the foreground. I'm asking more specifically about how to make a running Java app listen for a hotkey.

© Stack Overflow or respective owner

Related posts about java

Related posts about system-tray