JPopupMenu.setDefaultLightWeightPopupEnabled(false) doesn't work

669 Views Asked by At

I am working with the ImageJ 3D Viewer library (http://3dviewer.neurofly.de/). I am trying to display an image in the viewer, but the popup menu (menu options) are being obscured by the canvas. That is, they disappear behind the canvas. I looked all over, and the consensus answer seems that I should add this line of code early:

JPopupMenu.setDefaultLightWeightPopupEnabled(false);

I added this very early, but the issue still remains. Anyone have any ideas? I could post code, but that's the essential idea. I am trying to add a JMenuBar to a Canvas3D.

1

There are 1 best solutions below

8
EGHM On

Maybe try adding your Canvas3D to a JPanel? from http://www.velocityreviews.com/forums/t144174-canvas3d-overlaps-jmenu.html