简体   繁体   中英

<ProjectName.ProjectUI sucks as a name for my Netbeans java OS X app

What property in Netbeans to I need to change to set the name of my java swing app in the OS X menubar and dock? I found info.plist, but changing @PROJECTNAMEASIDENTIFIEER@ in multiple keys here had no effect.

Thanks, hating netbeans.

Check:

nbproject/project.properties

nbproject/project.xml

in project.xml look for the name element...

But... Why not just select the main project and right click and do rename?

The answer depends on how you run your application. If you run it from the command line, use '-Xdock:name=appname' in the JVM arguments. See the section "More tinkering with the menu bar" in the article linked to by Dan Dyer.

If you are making a bundled, double-clickable application, however, you just need to set the standard CFBundle-related keys in your application's Info.plist (see the documentation on Info.plist keys for more details).

这不是特定于NetBeans的,但是本文提供了一些有关调整Swing应用程序以使其适用于OS X的有用提示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM