try { Thread.sleep(1); } catch (InterruptedException e) { }
    public void run() {      while (!quit) {        if (canvases.isEmpty()) {          try {            Thread.sleep(10);          } catch (InterruptedException e) {          }        } else {          for (Iterator iter = canvases.iterator(); iter.hasNext(); ) {            GLJPanel panel = (GLJPanel) iter.next();            panel.display();          }        }      }      animatorStopped = true;    }