tags:

views:

377

answers:

1

i have a swing application that i would like to run on os x without a dock icon. Just a system tray icon. I know 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.

+1  A: 

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.

Matt Wilson