jogl: problem with menus onLinux and Windows XP

Hello,
I have a program using jogl written with NetBeans on a Mac which uses menus and works correctly. The same program on Linux and Windows XP - whether using the .jar file from the Mac or compiling with NetBeans - has the menu items hidden behind the black GLCanvas. I haven’t found jogl demos which use menus, so is this a known problem ? I appreciate any hints.

i think this is a swing bug which has been fixed in java 6.

This is could also be caused by the fact that GLCanvas is a heavyweight component and swing is lightweight. Heavyweight components are drawn over lightweight components, try using a GLJPanel to see if that fixes your problem.

Yes, this is a known problem and is a result of swing menues being lightweight and the GLCanvas being heavyweight. To fix this you have two options. Either use GLJPanel instead, like lhkbob suggested or call JPopup.setDefaultLightWeightPopupEnabled(false) somewhere in your code (you need it only once e.g. in the main()-method).

Yes, JPopup.setDefaultLightWeightPopupEnabled(false) did it.
Thanks a lot.