detecting any keystroke in java -


i'm writing program needs wait until key pressed. example:

system.out.println("press key continue"); //wait until keystroke obj.dosomething; 

the key pressed doesn't matter , don't need capture key pressed, need program wait until key depressed continue.

the official java tutorials describe how implement key listeners purpose:

http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -