public void run() {
   while (true) {
     try {
       sleep(interval);
     } catch (Exception e) {
     }
     if (toDraw.in && toDraw.isVisible()) {
       toDraw.repaint();
       if (clickedTicks == 0) toDraw.blink(oldState);
       else clickedTicks--;
     }
   }
 }
 public void clicked(int ticks) {
   clickedTicks = ticks;
   toDraw.blink(false);
 }