I am using Netbeans trying to change the title when the program runs from java
to Phantom
. I also would like to change where it says phantom.Main
to Phantom
. I am not sure if I do this in: Java, Netbeans, Netbeans priorities or the ant build.xml file (or even somewhere else). I can not find any documentation on this either. Any help on this would be great!

- 34,175
- 38
- 176
- 338
3 Answers
The "java" name in the (Mac OS X) application menu is only used when you run the application from within Netbeans. If you were to package the application into a DMG, and then run the resulting app, the name of the application will appear in that location.

- 21
- 2
-
jpackager --name option – NullPumpkinException May 17 '19 at 05:56
You may not be able to do it via Netbeans or any other IDE, but you can definitely do it while creating an application bundle, using JavaFX Ant Script.
To get it display a custom name, change application
name in the packaging procedure.
To know how to package your application, please visit - https://stackoverflow.com/a/30162808/1759128
For more information, refer
http://docs.oracle.com/javafx/2/deployment/javafx_ant_tasks.htm
Example
http://docs.oracle.com/javafx/2/deployment/javafx_ant_tasks.htm#CIAHEGJD

- 36,135
- 10
- 122
- 176
I was wondering the same, after some googling I found this post which has a solution to changing the menu bar at the top, but not the menu that says "java": How to make an OS X menubar in JavaFX
EDIT: It essentially says that that if you want to have a so called system menu bar, you have to invoke the function setUseSystemMenuBar(true)
on the MenuBar item. One more thing to mention is that it doesn't work if there are no MenuItems in the menu.

- 1
- 1

- 14,673
- 7
- 45
- 62