static void removeTrayIcon(final TrayIcon t) { if (t != null) swing { SystemTray.getSystemTray().remove(t); } }