/** * Remove the tray icon from the system tray * * @since 0.9.26 */ public synchronized void stopManager() { if (tray != null && trayIcon != null) { tray.remove(trayIcon); tray = null; trayIcon = null; } }
@Override public void actionPerformed(ActionEvent ae) { int state = frame.getExtendedState(); state &= ~Frame.ICONIFIED; frame.setExtendedState(state); frame.setVisible(true); tray.remove(trayIcon); trayIcon.removeActionListener(this); } });
tray.remove(trayIcon);
/** * Removes the tray icon if the tray is available and the icon is currently * added. */ private void removeIcon() { if (iconAdded && tray != null) { tray.remove(trayIcon); iconAdded = false; } }
@Override public void run() { try { Thread.sleep(5000); } catch (InterruptedException e) { // ignore } systemTray.remove(trayIcon); } }).start();
public static void remove() { if (tray != null && instance != null) { logger.info("Removing tray icon"); tray.remove(instance); tray = null; } }
@Override public void run() { try { Thread.sleep(5000); } catch (InterruptedException e) { // ignore } systemTray.remove(trayIcon); } }).start();
tray.remove(trayIcon);
public void exceptionOccurred(Exception exception) { shutdown = true; if(alarms_gui!=null) alarms_gui.dispose(); if(tray!=null) tray.remove(ti); if(timer!=null) timer.stop(); dispose(); } public void resultAvailable(Void result)
@Override public void close() { if (!skipNotifications) { try { Thread.sleep(application.timeout() == -1 ? SECONDS.toMillis(2) : application.timeout()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } SystemTray.getSystemTray().remove(icon); } }
public void exceptionOccurred(Exception exception) { shutdown = true; if(alarms_gui!=null) alarms_gui.dispose(); if(tray!=null) tray.remove(ti); if(timer!=null) timer.stop(); dispose(); } public void resultAvailable(Void result)
/** * Hide the tray icon. */ public void hide() { if (SystemTray.isSupported()) { SystemTray.getSystemTray().remove(trayIcon); } }
public void uninstall() { if (SystemTray.isSupported()) { SystemTray.getSystemTray().remove(trayIcon); trayIcon = null; } }
@Override public void actionPerformed(ActionEvent e) { tray.remove(trayIcon); if (agent.isCreatedCorrectly() && agent.isMainLoopStarted()) { agent.exitProcess(); } System.exit(0); } });
@Override public void actionPerformed(ActionEvent e) { sysTray.remove(trayIcon); SECRenderer.getInstance().stopSinglePointServer(); SECRenderer.getInstance().stopMultiPointServer(); System.exit(0); } });
@Override public void actionPerformed(ActionEvent e) { sysTray.remove(trayIcon); SECRenderer.getInstance().stopSinglePointServer(); SECRenderer.getInstance().stopMultiPointServer(); System.exit(0); } });
@Override public void shutdown() { if (SystemTray.isSupported()) { SystemTray tray = SystemTray.getSystemTray(); tray.remove(trayIcon); } ChatManager.getInstance().removeChatMessageHandler(chatMessageHandler); }
@Override protected void performClose() { if (hasProcess()) { if (killOnClose) { performKill(); } } if (trayIcon != null) { SystemTray.getSystemTray().remove(trayIcon); } super.performClose(); }
@Override protected void performClose() { if (hasProcess()) { if (killOnClose) { performKill(); } } if (trayIcon != null) { SystemTray.getSystemTray().remove(trayIcon); } super.performClose(); }