Menu displayed behing GLCanvas

Hi,

I’ve a JOGL panel included in a JPanel.
I think the prefered way is to use a GLJPanel as soon I’m using swing components. But this one is very very slower (on Intel graphics card).
So I decided to use GLCanvas, but my problem is that the application’s Menu (the JMenu and JMenuItem contained in the JMenuBar) is displayed behind the canvas.
Have you any tricks to get the menu displayed on top of the jogl canvas ?

thanks :wink:

Use an AWT Menu, or set the swing menu as heavyweight :

JPopUpMenu.setDefaultLightweightPopupEnabled(false);

Lilian

I think you should make your menu items heavyweight.

You can look at this tip:

http://javaalmanac.com/egs/javax.swing/PopupHw.html

Actually the setDefaultLightweightPopupEnabled trick works fine in all cases I’ve tried :slight_smile: