How can I detect when new windows open and / or get a list of open windows?

I know WindowListenerhis ilk, but they seem to provide events for windows that you already have a link to, and you can add a listener. I am wondering how to get a callback when new windows are created by other processes, or polling for a list of all the windows currently open in the system.

I use J2SE on Mac OS X, but the cross-platform answer is perfect.

+5
source share
3 answers

As stated above, you can only monitor windows created by Java applications. Obtaining such information will require specific OS development (JNI).

+3
Window.getWindows();
Window.getOwnedWindows();
Window.getOwnerlessWindows();

Windows, Java-.

+1

, - JRE. "" Windows . .

0
source

All Articles