/** Set tray icon to inactive (network down) */
 public void resetIcon() {
   display.syncExec(
       new Runnable() {
         public void run() {
           trayItem.setImage(image);
         }
       });
 }
 /** Set tray icon to inactive (network down) */
 public void inactiveIcon() {
   isActive = false;
   display.syncExec(
       new Runnable() {
         public void run() {
           trayItem.setImage(inactiveImage);
         }
       });
 }
 /** Switch tray icon between active and standby icon. */
 public void switchIcon() {
   isActive = true;
   display.syncExec(
       new Runnable() {
         public void run() {
           if (trayItem.getImage().equals(image)) {
             trayItem.setImage(image2);
           } else {
             trayItem.setImage(image);
           }
         }
       });
 }