!7 lib 1009154 // SystemTray import dorkbox.systemTray.*; p { SystemTray.SWING_UI = new CustomSwingUI(); SystemTray systemTray = SystemTray.get(); if (systemTray == null) fail("Unable to load SystemTray!"); pcall { systemTray.setImage(loadImage2(#1003596)); } systemTray.setStatus("Not Running"); systemTray.getMenu().add(new MenuItem("Quit", actionListener(r { systemTray.shutdown(); //System.exit(0); not necessary if all non-daemon threads have stopped. })).setShortcut('q')); // case does not matter }