animator.stop(); System.exit(0);
new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start();
  public static void main(String[] args) {    Frame frame = new Frame("Gear Demo");    GLJPanel drawable = GLDrawableFactory.getFactory().createGLJPanel(new GLCapabilities());    // Use debug pipeline    //    drawable.setGL(new DebugGL(drawable.getGL()));    System.err.println("DRAWABLE GL IS: " + drawable.getGL().getClass().getName());    System.err.println("DRAWABLE GLU IS: " + drawable.getGLU().getClass().getName());    drawable.addGLEventListener(new GearRenderer());    frame.add(drawable);    frame.setSize(300, 300);    final Animator animator = new Animator(drawable);    frame.addWindowListener(new WindowAdapter() {        public void windowClosing(WindowEvent e) {          animator.stop();          System.exit(0);        }      });    frame.show();    animator.start();  }