I was following this tutorial to make my swing application more Mac-like. Putting my swing menu on the mac menubar is no problem. The thing I can't seem to change is my application name. Instead of "com.website.package.class" I just want it to display my application name. According to the tutorial I should call:
This sadly doesn't work. When I run my program from the command line and set the property like this
it does work.
I really would like to set this property in the code itself which would allow me to make just one jar file for all platforms and would not require run scripts.
What you should really be doing to make the application more Mac-like is to use JarBundler -a free tool from Apple- to give it a native Cocoa wrapper. That'll also give the application a nice icon instead of the generic Java icon, and a proper application name.