I need to hide the dock icon of my javafx application. In a normal java application this can be achieved by the following property:
System.setProperty("apple.awt.UIElement", "true");
However, this does not seems to work with JavaFX.
Thanks!
Just tried it. You have to modify *.app/Contents/Info.plist and add
<key>LSUIElement</key>
<string>1</string>
Simple example:
<?xml version="1.0" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSUIElement</key>
<string>1</string>
...
For me it worked on bundled javaFX apps