Reputation: 37
I was just wondering if it was possible to add a key listener to components outside a java application. In other words, what do I need to do in order to detect the keys typed when the focus isn't on the java application?
Thanks in advance,
S.
Upvotes: 1
Views: 293
Reputation: 2854
Unfortunately, you can't detect key events to programs running outside of your Java application. It you want to do that, you'll have to write your program in a native language (C, C++, etc.)
Upvotes: 1