简体   繁体   中英

How to change the “About” window in my Java program for Mac OS X?

Mac OS X has built in function to show an "About" window. On my program I can see the name of my head class and "version 1.0".

Where can I change this information? I am using NetBeans and there is nothing related to this setting I can find.

The place(s) to set these items is described in http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html .

It is not difficult, but it isn't easy.

You can change the name that appears in the about dialog by editing your project's Run properties... the 'VM Options' property, specifically. You would add something like "-Xdock:name=BLAHBlahblah" to that property's text field. Your project will appear with thename BLAHBlahblah in the menubar AND the About dialog that opens when you select 'BLAHBlahblah->About BLAHBlahblah'

You can change the icon by applying the VM option -Xdock:icon, too.

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