GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
GLCanvas canvas = new GLCanvas();
  private static void showFrame(String name, Point location) {    Frame frame = new Frame(name);    frame.addWindowListener(new WindowAdapter() {        public void windowClosing(WindowEvent e) {          System.exit(0);        }      });    frame.setLayout(new BorderLayout());    GLCanvas canvas =      GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());    canvas.setSize(400, 400);    canvas.addGLEventListener(new Listener());    frame.add(canvas, BorderLayout.CENTER);    frame.pack();    frame.setLocation(location);    frame.show();  }