java - Listen to Keys while JFrame isn't visible -
this question exact duplicate of:
- jframe close background , listen keys 2 answers
i'm creating small person program want run in background until press ctrl+shft+l
it's jframe window , have setvisible(false)
when happens. after it's no longer visible, need listen above keys , display jframe again.
i've tried keyeventdispatcher
, jnativehook , both didn't work.
how listen keys in background?
i suggest using keylistener. here documentation: http://docs.oracle.com/javase/7/docs/api/
Comments
Post a Comment