| Views: 3783
I've been updating a Swing app recently and discovered that under OS X Mavericks the dock name setting does not work as expected. Previously it was possible to set this programatically, now it seems that the dock name can only be set via a java startup option.
Here is the issue demonstrated. My class has the following code:
When I run this, the result comes up as:
Note that the menu name is not set to the expected 'TEST' value but uses the java class name instead.
In addition to this, the dock is set to 'java' instead of 'TEST'.
When I set the -Xdock:name property on the java executable, this changes the menu name as expected, but the dock still retains it's 'java' text.
At the moment there does not seem to be any way of fixing this in Java code.
Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip
Other posts you may like...