...
>...need to recognize a keypress in my java
>application even if the application is not the foreground window and
>has no keyboard focus.
I doubt it can be done in pure Java. Try JNI.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
cyprian - 11 Jun 2007 18:09 GMT
> axel.kow...@rub.de wrote:
>
[quoted text clipped - 10 lines]
>
> Message posted viahttp://www.javakb.com
the focus hierarchy flows from Windows before it gets to your
component, you'll always get a FOCUS_LOST response because the window
that is the focus cycle root will return DEACTIVATED, no show in java
for that.