http://java.sun.com/products/jfc/tsc/articles/mixing/index.html advices how to make JPopupMenu
s heavyweight. Just set the property:
setLightWeightPopupEnabled(false);
It works fine, but if I have submenus in the popup, implemented as JMenu
items, they don't seem to inherit the popup's heavy weight. JMenu
doesn't have a method to make itself heavyweight, and using an AWT Menu
isn't an option, since I want to put Swing items into it.
How do I make the submenus heavyweight, too?