OSX Java system tray (menu bar)

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.

+4
source share
1 answer

Windows and OSX are different. On Windows, you can have both.

In OSX, the application is in the dock with an additional entry in the menu bar or in the menu bar. If you really want this, you can run it in the form of two applications in the menu bar and without a window - which opens another application on the dock only when you need a window (adding any messages necessary to synchronize states).

+3
source

All Articles