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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -