Hello, I am very new to JAVA and unfamiliar with the JOGL bindings. I am trying to place some openGL code that I have written into a swing JIntenalFrame, that is contained in a JDesktopPane. I created a canvas using the following code:
GLCapabilities glcaps = new GLCapabilities();
GLCanvas mycanvas = GLDrawableFactory.getFactory().createGLCanvas(glcaps);
mycanvas.addGLEventListener(new myclassEventListener());
jInternalFrame.getContentPane().add(mycanvas, java.awt.BorderLayout.CENTER);
THis seems to work, I see the openGL canvas in the frame, but there are some big time bugs. Whenever I move the frame, the drawings dissapear, then reappear at random. Also there are more internal frames on the desktop pane than just the one that contains openGL. Whenever I move any of these over top of the openGL frame, or maximize. The internal frame (I.E. borders) containing the canvas moves behind the other frame, but the canvas stays on top. Regardless of where the frame is layered, the GL canvas always remains on top. Can anyone help me fix this problem, or is it an inherrant problem with JOGL?