Java OS X Lion Set application name doesn't work

后端 未结 6 1892
独厮守ぢ
独厮守ぢ 2020-12-05 07:11

I\'m trying to change the application name displayed into the menu bar of OS X but i can\'t succeed with that. I have tried settings as the first statement in the main metho

6条回答
  •  独厮守ぢ
    2020-12-05 07:28

    Apparently, you can do it adding the following when you add the following options to the command line:

    -Xdock:name="Alessio"

    While com.apple.mrj.application.apple.menu.about.name is the right property name, I think you'll be setting it too late. Have you tried it on the command line as:

    -Dcom.apple.mrj.application.apple.menu.about.name=Alessio

    For more information about writing Java Apps for OS X: http://www.oracle.com/technetwork/articles/javase/javatomac-140486.html

    It may also be worth looking at something like this: http://launch4j.sourceforge.net/

提交回复
热议问题