GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
GLCanvas canvas = new GLCanvas();
    public static void main(String[] args) {        try {            Frame frame = new Frame("Tess Demo");            frame.setSize(500, 500);            GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());            frame.add(canvas);            canvas.addGLEventListener(new TessRenderer());            final Animator animator = new Animator(canvas);            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();        } catch (Exception e) {            e.printStackTrace();        }    }