Open srcimon opened 6 months ago
try { PopupMenu demo = new PopupMenu("DEMO"); MenuItem quit = new MenuItem("quit"); quit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { stop(); } }); demo.add(quit); SystemTray.getSystemTray().add(new TrayIcon(SpritesBundle.BOX_STRIPED_32.get().image(Time.now()), "TOOLTIP", demo)); } catch (AWTException e) { throw new RuntimeException(e); }