Does anyone know how an application (Java on OSX) starts in the system tray state, but when does a window with a dock icon appear on the screen? Currently, I have a compromise between how the application works in the tray, but it is also shown on the dock and using the menu bar or has (using the player hack) an application that works only on the taskbar (but without the dock icon when a window is displayed).
I want to work exactly the way it works on Windows. Launch in the tray when no window is displayed, but when it is displayed, an item in the taskbar / superbar is displayed.
source share