I'd like to get window information (size, position) from (non-java) applications other than my own. Is there a way of doing this in java?
Printable View
I'd like to get window information (size, position) from (non-java) applications other than my own. Is there a way of doing this in java?
As far as I know, that information needs to come from your operating system. The question then becomes:does your operating system supply that information and if so how?
I would advise to discontinue that project if you want to use Java and is a beginner in Java.
There is no way to write such code in Java unless you can use another application in your OS to get that information, or if you write that code in
another language and bind it to Java using JNI (or alike). The first alternative is not probable and is not to hard, the other alternative [using JNI] is rather advanced.
I was afraid that would be the case :) I didn't really want to sacrifice platform independence, but so be it...
Then the question is, what about JNA?