Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

KeyListener without GUI or without focus

807589Oct 24 2008 — edited Oct 25 2008
Hi people, I am making an application that replaces the mouse with the keyboard. It does that by sitting in the background clicking and moving the mouse using a Robot class. It should CLICK when I press SPACE and it works well as long as the application window stays focused, but when I try to use it with another application focused it doesn't recieve events from keyboard. Is there a solution to this problem?

Thanks,
Marko
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2008
Added on Oct 24 2008
3 comments
1,262 views