GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes System Tray - double click icon to set visible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "System Tray - double click icon to set visible" Watch "System Tray - double click icon to set visible" New topic
Author

System Tray - double click icon to set visible

Mike Bates
Ranch Hand

Joined: Sep 19, 2009
Posts: 81
I have this code working just fine, one option I want is to use a double-click on the icon in the system tray to set the application visible again. I am thinking of using a mouse listener but not sure where I would put it or would I use a window listener?

Thanks for your guidance.
Mike


Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2191
    
    7
How to Use the System Tray
Mike Bates
Ranch Hand

Joined: Sep 19, 2009
Posts: 81
Gosh dang it. I looked at that demo and missed the ActionListener for the trayIcon.

Thanks for the direction.

Mike
 
GeeCON Prague 2014
 
subject: System Tray - double click icon to set visible