Login  Register

Re: GLCanvas draws over Swing components on Mac

Posted by karelknoes on May 11, 2012; 2:13pm
URL: https://forum.jogamp.org/GLCanvas-draws-over-Swing-components-on-Mac-tp3973879p3980053.html

Thanks again for the very helpful ideas. New directions to add to our experiment list.

Regarding your question about the use of JInternalFrame. The first few levels of our UI are build up with nested JPanels using BorderLayout, with the root JPanel set as ContentPane of a JApplet. The GLCanvas is directly added into this nested JPanel UI.

The impact of the Z ordering problem on our Applet is a bit puzzling. Strictly speaking, the GLCanvas does not overlap our top menu bar in Z-ordering. The GLCanvas however does not respect the BorderLayout management and fills the entire JApplet ContentPane.  I guess the GLCanvas checks the available UI space on a different Z-level from where the rest of the UI is living and incorrectly concludes that the entire ContentPane is still free.

I'll definitely add the OpenJDK as a potential solution direction to our list. Perhaps in the same line of thought, the new Oracle JVM 7 for Mac might also be worth a shot?