I am converting code from jdk 1.6 to jdk 1.5 and the code is:
import java.awt.SystemTray;
public static void main(String[] args) {
if (SystemTray.isSupported()) {
SystemTray tray = SystemTray.getSystemTray();
}
try {
tray.add(trayIcon);
} catch (AWTException e) {
System.err.println("TrayIcon could not be added.");
}
}
Could you guys tell me what will be the compatible code for this?