Reputation: 7074
I have launched my application in Mac OS X. Next to the Apple icon in the top left corner of the screen appears the name of my application. This name appears as the package path of my main class (i.e. pack.age.Uno
instead of Uno
).
Does anyone know how to fix this annoying thing?
Upvotes: 1
Views: 949
Reputation: 169
Just add this parameter when launching the program: -Xdock:name=MyApp
Upvotes: 3
Reputation: 282
I've been annoyed by this too. There is no way I know of to override in code reliably. I'll get it working with if (System.getProperty("os.name").contains("Mac")) System.setProperty("com.apple.mrj.application.apple.menu.about.name","My Java App");
but com back later and it wil be back to the "com.me.myapp". On release you can use Jar Bundler to make an app bundle and then the problem goes away.
Upvotes: 1