can anyone help me in java to detect key press without using 'Enter'(like kbhit() in c)??? like: while(true) { if(key pressing==true) do something... else do anotherthing... } thanks in advance......
You can do this by implementing key listeners, see here for more info http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html Cheers
You can do this in java script using onKeypress event, see here for detailed info http://www.w3schools.com/jsref/jsref_onkeypress.asp