![](/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.