Package snoozesoft.systray4j

Examples of snoozesoft.systray4j.SysTrayMenuIcon


        try {

            // 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
View Full Code Here


    initializeSystray( listener );
  }

  private void initializeSystray( SysTrayMenuListener listener ) {
        //Setup the icons that we want to use
        buildingIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/building.ico" ));
        buildingIcon.addSysTrayMenuListener( listener );
        successIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/success.ico" ));
        successIcon.addSysTrayMenuListener(listener );
        failIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/failure.ico" ));
        failIcon.addSysTrayMenuListener( listener );
        unavailableIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/unavailable.ico" ));
        unavailableIcon.addSysTrayMenuListener( listener );
        failBuildingIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/fail_building.ico" ));
        failBuildingIcon.addSysTrayMenuListener( listener );
        failSuccessIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/fail_success.ico" ));
        failSuccessIcon.addSysTrayMenuListener( listener );
        successBuildingIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/success_building.ico" ));
        successBuildingIcon.addSysTrayMenuListener( listener );
        failUnavailableIcon = new SysTrayMenuIcon( getClass().getResource( "/icons/fail_unavailable.ico" ));
        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);
       
View Full Code Here

TOP

Related Classes of snoozesoft.systray4j.SysTrayMenuIcon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.