Hamza Yerlikaya
Hamza Yerlikaya

Reputation: 49329

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 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.

Upvotes: 0

Views: 1665

Answers (1)

Matt Wilson
Matt Wilson

Reputation: 56

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.

Upvotes: 4

Related Questions