Frame frame = new Frame("Gear Demo"); GLJPanel drawable = GLDrawableFactory.getFactory().createGLJPanel(new GLCapabilities());
JFrame frame = new JFrame("Gear Demo"); frame.getContentPane().setLayout(new BorderLayout()); GLCapabilities caps = new GLCapabilities(); caps.setAlphaBits(8); final GLJPanel drawable = GLDrawableFactory.getFactory().createGLJPanel(caps); drawable.setOpaque(false); drawable.addGLEventListener(new GearRenderer());
  public static void main(String[] args) {    Frame frame = new Frame("Gear Demo");    GLJPanel drawable = GLDrawableFactory.getFactory().createGLJPanel(new GLCapabilities());    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) {          // Run this on another thread than the AWT event queue to          // make sure the call to Animator.stop() completes before          // exiting          new Thread(new Runnable() {              public void run() {                animator.stop();                System.exit(0);              }            }).start();        }      });    frame.show();    animator.start();  }