This class is the main interface of this package. Access to the system tray begins here when an instance of this class is created.
Each instance consists of:
The items of the menu are placed in bottom-up order:
6061626364656667686970
// windows if( System.getProperty("os.name").toLowerCase().indexOf("windows") != -1 ) { log.info( "Creating Windows Tray Icon" ); winTray = new SysTrayMenuIcon( "icons/tray" ); winTray.addSysTrayMenuListener( this ); new SysTrayMenu( winTray, "Sockso" ); } // everything else else { log.info( "Creating JDIC Tray Icon" );
565758596061626364
failUnavailableIcon.addSysTrayMenuListener( listener ); successUnavailableIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/success_unavailable.ico" )); successUnavailableIcon.addSysTrayMenuListener( listener ); //create the system tray application - and set the icon to the paused icon systray = new SysTrayMenu(unavailableIcon); initMenuItems(); }