How would I get the currently focused window in Java? For example, if the user is in Google Chrome. I believe this requires native code, and I've never used native code, so please help out with that.
I only need this to work with Windows, so I think this might be possible with a VB script?