I know this comes up from time to time, but I am hoping that newer releases of the JDK may have changed some of the answers.
I need to create 2 windows that are always on top, and cannot allow other java windows to be moved underneath them.
Unfortunately, my java windows may come from other java VM's.
The question is whether or not there is a way to force the window to always be on top -- Linux Gnome platform.
And secondly is there a way for a window to know its occluded by another window.
I've seen the example where WindowListener is used, but activation/deactivation is not what I want.
Even if I drop to JNI, I'm not exactly sure how to get the behavior I am looking for. The closest I can think of would be an XWindows application that has the properties I'm looking for that swallows the output of a named window produced by my java application. But all of the swallowers I have seen need to start the program that generates the window that gets swallowed.