Hi,
I noticed that using the follwing initialization sequence, the display method of the GLEventListener is called either before the init method, or the init method is not called at all.
GLCapabilities caps = new GLCapabilities();
caps.setHardwareAccelerated(true);
caps.setDoubleBuffered(true);
//caps.setDepthBits(24);
//caps.setStencilBits(8);
GLCanvas glCanvas = GLDrawableFactory.getFactory().createGLCanvas(caps);
glCanvas.setSize(640, 480);
this.getContentPane().add(glCanvas);
glCanvas.addGLEventListener(new MyGLEventListener());
initComponents(); // swing stuff with pack()
versus
initComponents(); // swing stuff with pack()
glCanvas.addGLEventListener(new MyGLEventListener());
which works fine.
IMHO this behavior is a usage bug and should be fixed.
best regards
- Michael
(P.S. using jogl 1.1 final on a linux box)