Skip to main content

TrayIcon -> displayMessage

No replies
Joined: 2005-11-29


I am trying out the new mustang version and there are a lot of cool new features.

The one I am using right now is the TrayIcon. I notice that I have no way to hide the dialog that is created nor can I set a time out.

I use it for notifications from a server, but the server sometimes sends a signal to expire the message. But I have to wait till the user clicks it or it times out.

My second problem with the box that is created is that when it fires an ActionEvent there is no way to figure out which dialogMessage fired it. I wouldn't mind having a method like:

trayIcon.displayMessage("A string as a title", "Look at the pretty balloon in windows", TrayIcon.MessageType.INFO, "Action Command");