The code below is part of a demo I downloaded.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| public SimpleJoglApp() { super("Simple JOGL Application");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GLCapabilities glcaps = new GLCapabilities(); GLCanvas glcanvas = GLDrawableFactory.getFactory() .createGLCanvas(glcaps); glcanvas.addGLEventListener(new SimpleGLEventListener());
getContentPane().add(glcanvas, BorderLayout.CENTER); setSize(500, 300);
centerWindow(this); } |
I am having a problem with the line the shown below:
1 2
| GLCanvas glcanvas = GLDrawableFactory.getFactory() .createGLCanvas(glcaps); |
The problem is that there is no method .createGLCanvas(). How do I get round this problem.
Thanks