aspose file tools
The moose likes Swing / AWT / SWT and the fly likes create system tray Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "create system tray" Watch "create system tray" New topic
Author

create system tray

sathya rajavel
Greenhorn

Joined: May 30, 2011
Posts: 8

i want to create system tray
while clicking the system tray it should open a frame for login
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Welcome to the Ranch!

Check out SystemTray and TrayIcon. The latter can have an ActionListener or a MouseListener added to it to listen for click events; I believe that ActionListener is usually triggered upon double clicking, whereas with MouseListener you have full control over the number of clicks or even the button that was clicked.

You should always check if SystemTray.isSupported() returns true before using it; there's an example on the SystemTray Javadoc page.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: create system tray
 
Similar Threads
replacing objects in diff sized monitors
Start: Applet not initialized
local time display in forum
Server crash!
System applications in Java