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.
精彩评论