开发者

Java Mac OS X running with out a Dock Icon

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜