Using a GLCanvas inside a JPanel

I have to insert a GLCanvas (heavyweight component) into a JPanel (lightweight component), inside a JFrame with a JMenu. As explained in

http://java.sun.com/products/jfc/tsc/articles/mixing:

[quote]Guideline No. 1

Do not mix lightweight (Swing) and heavyweight (AWT) components within a container where the lightweight component is expected to overlap the heavyweight one.
[/quote]
And in fact, GLCanvas overlaps menu lists.

Is there a workaround?

    Thanks for the help.

          Angelo.

If its just the menus you’re having problems with, add:

JPopupMenu.setDefaultLightWeightPopupEnabled( false );

Thanks to your assistance, I’ve solved the problem.

I had totally miss the hints in the article of Swing Connection.

        Thanks

               Angelo