Can anyone show example on how to make a JWindow always on Desktop?
I cannot set the "AlwaysOnTop" since I do not want it to be on top of other applications, but I want it to stay on Desktop.
Whenever I click the show Desktop button or Windows Key + M to minimize all, it disappears also. When i return to any window, it will be visible again.
I wanted to inject the window in the desktop.
I cannot understand what do you mean by "I wanted to inject the window in the desktop." but if you want to prevent your application window from being minimized (
ICONIFIED), you can write a smallWindowStateListenerand in thewindowStateChangedcheck for the new state of your window. If its new state wasICONIFIEDyou can change the state toNORMALagain:It will support your windows+M hot key, because after minimizing all windows, your application's window will be deiconified.
Hope this help.