JDialogs cause my application's menus to disappear on OSX
Whenever any of my JDialogs have focus the toolbar does not display any menus accept for my applications main menu (it doesn't show file edit etc....). Is this an issue inherent to JDialogs/Swing or is this some sort of problem w开发者_高级运维ith how I made my dialogs?
Swing can optionally use the JMenuBar
from your application's JFrame
and display it along the top of the screen. Set the following property to enable that feature.
System.setProperty("apple.laf.useScreenMenuBar", "true");
Unfortunately, this does not work with JDialog
, only JFrame
.
精彩评论