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 with how I made my dialogs?
+1
A:
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
.
Matthew
2009-12-21 23:50:50