106107108109110111112113114115116
frame = new Frame(); if (SystemTray.isSupported()) { try { SystemTray.getSystemTray().add(new Tray(frame)); } catch (AWTException ex) { hasSystemTray = false; } }