Problem with GLCanvas on a JPanel

Hello All,

I’ve ported the display canvas of my 2D application to a new 3D canvas using JOGL.

The application has a frame with a menubar on top, then a toolbar, then the core Panel containing a GLCanvas for 3D visualisation.

The problem I’m seeing is that when I select from the menubar, many drop-down menus seem to disappear behind the GLCanvas
panel. They show up fine over the toolbar but then appear to fall behind the GLCanvas. I get variable effects if I move the
toolbar around (from docked to floating) with some dropdown menus appearing over the GLcanvas and others hidden
behind it.

This problem does not happen on my mac, only on my windows PC at home running java 1.4.2.10. I’ve tried the most recent stable
JOGL plus the latest non stable builds. A colleague at work runing 1.4.2.6 does not appear to get this problem on his windows
machine.

Any ideas ?

Thanks,

Anton

Ok,

After another 30mins of googling, I finally found and fixed the problem (which you are all probably aware of).

I needed to set the JPopUps of all my JMenus to disable Light Weight Popups, eg:

m_fileMenu.getPopupMenu().setLightWeightPopupEnabled(false);

Thanks,

Anton