在 mac 应用上更改 "about this" window

Change the "about this" window on mac app

在 Mac 秒,顶部有一个用于基本应用程序处理功能的默认菜单:

我已经使用 Java 为我的 10 年级期末项目制作了一个应用程序(而且我非常相信它比 Microsoft Paint 更好)并且我决定打包它。使用 Eclipse,我将其导出为 Mac OS X 应用程序包。但是,我想更改默认菜单上的 "About Editor"。目前,它显示:

如何更改关于 Window 的内容(我的应用肯定不是 1.0.1 版本)?我希望不要进入 Xcode 或任何东西,但是我可以用 System.setProperty(key, value) 之类的东西来改变什么吗?

如果您的应用程序是 .app bundle,那么它应该有一个 info.plistinfo.plist里面通常会包含版本信息,应该显示版本号:

<key>CFBundleShortVersionString</key>
<string>2.0.0</string>

通常,此处的版本信息会填充在需要它的地方(例如,关于)。要更改将显示在菜单上和关于对话框中的名称:

<key>CFBundleName</key>
<string>My Application</string>

版权信息:

<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Your Company</string>

捆绑包图标文件:

<key>CFBundleIconFile</key>
<string>icon.icns</string>