In fact, you can very easily change it using java command arguments
-Xdock:name=SomeName
This works great for me, running a JavaFX application in a Java11 user environment with a built-in bash script as a native application.
From the Oracle 10 documentation:
-Xdock: name = application name
Overrides the default application name displayed in the dock. [*]
-Xdock: icon = path to icon file
Overrides the default icon displayed in the dock.
[*] Also affects the menu name.
You can see my complete team by looking at 'src_macos / tmpl / George.sh' here: https://bitbucket.org/andante-george/george-application/src
For the About dialog, just do: java.awt.Desktop.getDesktop().setAboutHandler(my_about_handler)
. In your handler, open any kind of dialog or window that you want.
source share