Javafx changes osx command line name

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

Change title

+7
java javafx netbeans macos
source share
3 answers

You may not be able to do this through Netbeans or any other IDE, but you can do this when creating an application package using JavaFX Ant Script .

To display this name, change the application name in the packaging procedure.

To learn how to pack the application, visit the page https://stackoverflow.com/a/166778/

For more information see

http://docs.oracle.com/javafx/2/deployment/javafx_ant_tasks.htm

Example

http://docs.oracle.com/javafx/2/deployment/javafx_ant_tasks.htm#CIAHEGJD

+1
source share

I was wondering the same thing, after some googling I found this post that has a solution to change the menu bar at the top, but not the menu that says "java": How to create an OS X menu in JavaFX

EDIT: It basically says that if you want to have a so-called menu bar, you should call the setUseSystemMenuBar(true) function on the setUseSystemMenuBar(true) element. One more note - this does not work if there are no MenuItems in the menu.

0
source share

The name "java" in the application menu (Mac OS X) is used only when starting the application from Netbeans. If you were to pack the application in the DMG, and then run the resulting application, the application name will appear in this place.

0
source share

All Articles