Using JOGL in a Swing program
Posted by tomd on Nov 28, 2010; 1:43pm
URL: https://forum.jogamp.org/Using-JOGL-in-a-Swing-program-tp1981430.html
I am trying to use GLCanvas in a Swing program. Specifically the GLPanel is embedded in a JPanel containing toolbars, menus etc.
Basically works OK, except that drop down elements from the Swing toolbars which overlap the GLPanel don't display. If a dropdown partly overlaps the GLPanel, the bits which don't overlap display OK.
I am not an AWT programmer, I have heard there are problems mixing AWT and Swing. Or maybe it is the fact that the GLPanel is continuously repainting? Can anyone offer any insights?
Incidentally, comboboxes seem to work OK. I am using the JideSoft framework, which reimpliments many standard items such as menus using JPanels, and it is these items which don't seem to work.