![](/img/trans.png)
[英]How to set a high quality OSX dock icon for an SWT Java application
[英]How to hide the Java SWT program icon in the Dock when the application is in the tray
您可能正在使用错误的属性名称。 看看这里:
我想要设置的属性是:
“apple.awt.UIElement”(不是“LSUIElement”)
有两种方法可以做到这一点。 你可以通过:
-Dapple.awt.UIElement="true"
作为VM参数,或者您可以在Info.plist中将属性设置为:
<key>Properties</key>
<dict>
<key>apple.awt.UIElement</key>
<string>true</string>
</dict>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.