132133134135136137138139140141
System.exit(0); } }); tray.add(exit); SystemTrayAdapter adapter = SystemTrayProvider.getSystemTray(); icon = adapter.createAndAddTrayIcon(RS2Lite.class.getResource("/icon.png"), APPLICATION_TITLE, tray); }