I am displaying a JFrame
on OS X and am getting "java" for the name of the application when it is minimized to the dock. I am passing -Xdock:name="Foo"
, and this is changing the name in the dock when the application is not minimized, but once we minimize the name in the dock is wrong.
To minimize I am calling setExtendedState(JFrame.ICONIFIED)
.