I've made a java application which connects to a server and a Windows system tray notification popup which alerts the user when the application has disconnected and reconnected. Here is the code:
Image iconDisconnected = new
ImageIcon(this.getClass().getResource(iconDisconnectedLocation)).getImage();
trayIcon = new TrayIcon(iconDisconnected);
trayIcon.displayMessage("caption", "message", TrayIcon.MessageType.INFO);
However, this icon only appears for a few seconds. Is there a way to make it appear for longer? I've tried reading the manual and searching but can't find any information about this. Any ideas?