Sketch alsways ontop of JPopupMenu

Dear Community,

I am using a Processing Sketch (realized by an extension of PApplet) within a Java JFrame. It is embeeded within a JPanel. When I try to show a PopupMenu, which overlaps with the sketch, the menu is always drawn behind the sketch.

My guess would be that it might have to do with the z-order of the component. Can anyone help me?

THX

Answers

  • Setting JPopupMenu.setDefaultLightWeightPopupEnabled(false); solved the problem. :)

Sign In or Register to comment.