GLDrawable problems

Hello everyone!

I just tried some very basic code from the book “Learning Java Bindings for OpenGL (JOGL)” by Gene Davis.
In the book, he imports net.java.games.jogl.* but my system can’t find this. So I used javax.media.opengl.* instead.
Using Eclipse on Windows, the code looks all fine except these lines:

[quote]GLCanvas glcanvas = GLDrawableFactory.getFactory().[b]createGLCanvas/b;

public void init(GLDrawable gld) {
GL gl = gld.[b]getGL/b;
GLU glu = gld.[b]getGLU/b;

}
[/quote]
When I try to look for information about GLDrawable, Eclipse says

[quote]javax.media.opengl.GLDrawable
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.
[/quote]
What should I do best to get the code running?
Thanks in advance, Michael

Well I found another code example that uses javax.media.opengl.* and works.
Link to the thread: http://www.mrunix.de/forums/showthread.php?t=54888
I went through this code line by line, sorted out what I don’t need, and resulted in a
nice mini-template. :slight_smile: Thanks to Elvenone!