java - Listen to Keys while JFrame isn't visible -


this question exact duplicate of:

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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -