how to display a tray message when the program is just minimized to tray?
hello there
i made my program is minimized to tray when pressing the standard close button using the new features of Java SE 6 system tray
but i want to display a tray message when the program is just minimized to tray(when pressing the standard close button)
like in MSN Messenger to alarm the user that the progam is still running here,any ideas?
i tried
WindowAdapter actionListener2 =new WindowAdapter()
{
publicvoid windowClosing(WindowEvent e2){
try{
Thread.sleep(1);
trayIcon.displayMessage("Take Care !",
"JShutdown Timer Is In Progress Here.",
TrayIcon.MessageType.WARNING);
}
catch(InterruptedException un){}
}
};
isn't that right?
any one could help?

