*
The moose likes Java in General and the fly likes program name in mac os x menu bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "program name in mac os x menu bar" Watch "program name in mac os x menu bar" New topic
Author

program name in mac os x menu bar

Keano Denton
Greenhorn

Joined: Jun 25, 2013
Posts: 13
I have searched everywhere to find a solution to the application name in the menu bar beside the apple icon. I know that it uses the name of the main class. But what if the name of the main class is different than the name of the application should be. How do you change that name, programatically?


Thank You Very Much!!

Keano Denton
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

You need a Jar Bundler
The property you are looking for is
Bundle Name
The title of the application menu and the Dock item. Manifested in the CFBundleName property-list entry.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
And if you're looking for something that can be done automatically during the build, check out the http://informagen.com/JarBundler/ Ant task.

You can find further information about how to make a Java app more Mac-like in the http://www.coderanch.com/how-to/java/MacOsxFaq.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: program name in mac os x menu bar
 
Similar Threads
Menu Problems
Menu bars on a Mac
Setting the menu bar
B&S 2.2.1 : Short cut keys & Menu in GUI
addActionListener problem