final GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
final GLCanvas canvas = new GLCanvas();
  public static void main(String[] args) {    final GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());    HWShadowmapsSimple demo = new HWShadowmapsSimple();    canvas.addGLEventListener(demo);    demo.setDemoListener(new DemoListener() {        public void shutdownDemo() {          runExit();        }        public void repaint() {          canvas.repaint();        }      });    Frame frame = new Frame("ARB_shadow Shadows");    frame.setLayout(new BorderLayout());    canvas.setSize(512, 512);    frame.add(canvas, BorderLayout.CENTER);    frame.pack();    frame.show();    canvas.requestFocus();    frame.addWindowListener(new WindowAdapter() {        public void windowClosing(WindowEvent e) {          runExit();        }      });  }