Using "import javax.media.opengl.*;" and no "createGLCanvas()" available?

Hello!

I have this:

import javax.media.opengl.*;

import javax.swing.JFrame;

public class Window extends JFrame {
	public Window() {
		setTitle("JOGL Test");
		setSize(500,500);
		setResizable(false);
		
		GLCapabilities glCaps = new GLCapabilities();
		GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas( new GLCapabilities() );
	}
}

And i can’t not choose

createGLCanvas

I tried to import “net.java.games.jogl.*;” but it can’t be resolved, i downloaded the newest jogl.jar (-> \ext) and the jogl.dll (-> \bin).

What’s wrong here?

The namespace has changed from net.java.games.jogl.* to javax.media.opengl.* and some associated APIs have changed as well. Please see the browsable javadoc on the JOGL home page.

Hey!

I have took a look at the javadoc but i have no clue what to look at… i just see there is no createGLCanvas( )

GLCanvas now has a public constructor.

Please see the source code for the JOGL demos like the Gears demo for concrete examples of the new APIs.

GLCanvas canvas = new GLCanvas();

Hehe, thanks for the hint. Could you recommend a new tutorial because the old seem to be useless? ???

You can read this one : http://fivedots.coe.psu.ac.th/~ad/jg/jogl1/jogl1.pdf

any other new tutorials? i don’t like pdf that much, especially in this case.