开发者

Java Mac OS X running with out a Dock Icon

开发者 https://www.devze.com 2022-12-08 06:27 出处:网络
i have a swing application that i would like to run on os x without a dock icon. Just a system tray icon. I kn开发者_开发技巧ow about headless but if i set that property i can not create JFrames.

i have a swing application that i would like to run on os x without a dock icon. Just a system tray icon. I kn开发者_开发技巧ow about headless but if i set that property i can not create JFrames.

Is it possible to run a swing application without a dock icon in java? or through JNA if there is a native way.


You'd have to package it up as a .app (Mac application package), and in the package's Info.plist set LSUIElement to 1. See http://www.cocoadev.com/index.pl?LSUIElement.

0

精彩评论

暂无评论...
验证码 换一张
取 消