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);