Preface
I'm designing an application which will at one stage have it's keyboard focus taken away and redirected to another application. The application in question is Google-Chrome. At this stage my program should pause, or halt it's operations entirely until keyboard focus has been returned.
Some extra information:
- My application is being written in Java
- The application that is granted Keyboard focus is Google-Chrome
What I need
A way to test if a JFrame
has keyboard focus maybe like:
JFrame.hasScreenFocus()
or something to that effect.