« Return to Thread: Integrating Java applications with Mac OS X

Integrating Java applications with Mac OS X

by Frank-Michael Moser :: Rate this Message:

Reply to Author | View in Thread

Java applications under Mac OS X can be integrated with the native application environment using
com.apple.eawt:
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/package-summary.html
This is what NetBeans does well in org.netbeans.modules.applemenu. It registers

   Actions/Window/org-netbeans-modules-options-OptionsWindowAction.instance
   Actions/Help/org-netbeans-core-actions-AboutAction.instance
   Actions/System/org-netbeans-core-actions-SystemExit.instance

as Preferences-, About-, and Quithandlers.

Now I want to register a custom Preferences- and Abouthandler. Is there any way to register my own
actions other than calling NbApplicationAdapter.uninstall() (which is package private) by means of
reflection?

Frank-Michael

 « Return to Thread: Integrating Java applications with Mac OS X

LightInTheBox - Buy quality products at wholesale price