Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2153
    
    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
 
 
subject: System Tray - double click icon to set visible
 
Similar Threads
questions regarding system tray and tray icon
reduce display frame SystemTray
How to Add a Systemtray Icon on several machines ?
minimise to systray
Applet -Servlet connection in JNLP