You can't. At least not without JNI. What problem are you trying to solve?
--- Update ---
Nevermind, looks like I'm wasting my time here.
...
Type: Posts; User: KevinWorkman
You can't. At least not without JNI. What problem are you trying to solve?
--- Update ---
Nevermind, looks like I'm wasting my time here.
...
A JFrame will not receive key events if it does not have the focus.
There are methods that allow you to request the focus though. The API is your friend.