running = true;
    public void run()    {      running = true;      try        {          sleep(initialDelay);          queueEvent();          if (repeats)            while (running)              {                try                  {                    sleep(delay);                  }                catch (InterruptedException e)                  {                    return;                  }                queueEvent();                if (logTimers)                  System.out.println("javax.swing.Timer -> clocktick");                if ( ! repeats)                  break;              }          running = false;        }      catch (Exception e)        {          // The timer is no longer running.          running = false;        }    }