public void actionPerformed(ActionEvent ae) {
   String action = ae.getActionCommand();
   if (action.equals("refresh")) {
     routerThread = new Thread(this);
     routerThread.start();
   }
 }
  public void init(javax.swing.JApplet applet) {
    this.applet = applet;
    if (false) {
      // <Begin_init_javax.swing.JApplet>
      this.applet = applet;
      setVisible(true);

      // <End_init_javax.swing.JApplet>
    }

    routerThread = new Thread(this);
    routerThread.start();
  }