GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
GLCanvas canvas = new GLCanvas();
  public static void main(String[] args) {    Frame frame = new Frame();    GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());    canvas.addGLEventListener(new Listener());    frame.setUndecorated(true);    frame.add(canvas);    frame.setSize(1, 1);    frame.setVisible(true);  }