开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜