[kepler-dev] [Bug 4067] - Add "about" widget for kepler on the mac

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Tue May 19 10:59:34 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4067





------- Comment #4 from jones at nceas.ucsb.edu  2009-05-19 10:59 -------
Handling the About menu is possible and described in the Java Development Guide
for Mac OS X:
http://developer.apple.com/documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html

"Apple provides functionality for this in the com.apple.eawt package. The
Application and ApplicationAdaptor classes provide a way to handle the
Preferences, About, and Quit items."

Examples here:
http://developer.apple.com/qa/qa2004/qa1363.html#//apple_ref/doc/uid/DTS10003370
http://developer.apple.com/samplecode/OSXAdapter/index.html#//apple_ref/doc/uid/DTS10000685

And reference info here:
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/Application.html
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/ApplicationAdapter.html

Setting your own icon is done, if I remember correctly, via the Info.plist file
in the app bundle.  However, I also just found a page that indicates it can be
set on the command line too, using:
  -Xdock:icon=myhome/myIcon.icns
Apple prefers icons in icns format.  I think XCode has an icon editor.



More information about the Kepler-dev mailing list