I have a Swing application that runs on Mac. When the user opens any JDialog like the JFileChooser i want automatically the "About App_Name", "Quit App_Name" menu items in the Mac's menu beside the apple button at the top left of the screen to appear disabled, so the user won't be able to click them.
Is this possible ?
By default, the application menu entries do nothing when a modal dialog has focus, but the appearance is unaffected; this is standard on Mac OS X interface. Of course, your application's own menus should be enabled or disabled as appropriate. You can intercept the relevant events using OSXAdapter
, as shown in this answer.