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
Post a Comment