Enabling the 'Preferences' dialog for OS X Java Swing applications

I managed to figure out some of the vague details of Apple's com.apple.eawt.ApplicationAdapter class for handling the Application Menu in Java applications, thanks in part to this forum post, but the 'Preferences' menu wasn't showing up.

Fortunately, all that's required is to invoke your com.apple.eawt.Application object's setEnabledPreferencesMenu() method with a true boolean.

(See: Application (Apple Java Extensions))

Syndicate content

Twitter

  • RT @usonian: New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc 5 years 23 weeks ago
  • New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc 5 years 23 weeks ago
  • RT @godfly: Employee. You are the engine that drives this economy. Too bad you’re not the driver. 5 years 23 weeks ago
  • Hey FYE: reason your Keene store might be closing: your 30% off liquidation prices are still about 20% more than Amazon. Good riddance. #fb 5 years 24 weeks ago
  • Haw. Did a google search including the word 'bathtub'. Sponsored ad next to results: "Dinner with John Lithgow" #fb 5 years 24 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key