Hide Java application with application switcher and dock in OSX

I have a java application with a tray icon in the top line of the OSX menu. When I minimize the application, I would like it to disappear from the dock and the command-line application switcher and only into the tray. I have seen other OSX applications do this, so I think it's possible, but as a newbie to OSX, I have no idea how to achieve it.

Any help would be appreciated!

+7
java macos system-tray dock
source share
1 answer

As it turned out, SWT 3.5 had an error that prevented it from responding correctly to Info.plist, that OSX required to hide the application. This bug has been fixed in SWT 3.6, and with the release of Eclipse Helios today, I believe that SWT officially officially has version 3.6

To reach the hidden icon, at the top of your info.plist file, you just need to add the following line:

<key>LSUIElement</key> <true/> 
+6
source share

All Articles