using "= new GLCanvas()" not GLDrawableFactory.getFactory().createGLCanvas()

Can I do it in newest JOGL version?
myCanvas = new GLCanvas();

the line code bellow returns an error:
myCanvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());

Yes, new GLCanvas() is now how things are done. What old documentation or examples are you looking at that use the old API style?

a few weeks ago when i started with this stuff, i remember seeing LOTS of code snippets using the older methods…

Its quite confusing when trying to scour the net for info relating to jogl and seeing people using older methods that are no longer supported, however saying that most of the code is still the same its just small changes that ive noticed…

No documentation but examples like:

http://jerome.jouvie.free.fr/index.php
http://www.cokeandcode.com/node/9
http://today.java.net/pub/a/today/2003/09/11/jogl2d.html
http://today.java.net/pub/a/today/2004/03/18/jogl-2d-animation.html
http://www.jogl.info/ (one of the few german sites)

the most examples you can find about jogl use the old stuff.

Thanks for the pointers. I’ve filed Issue 286 to track this. Please feel free to update the bug report or post here if you find more web sites that have old code. I’ll try to work with the site owners to revise the content.

thank you.

I am learning a book named “Learning Java Bindings for OpenGL(JOGL)”.The book is a little outmoded.Do you have some good material or suggestion for me to learn JOGL? Thank you. :smiley:

There was no need to revive an old thread just to post a question. A new thread or a simple search through JGO would have gotten you the answer…

Look at our tutorials on JogAmp.org.