If you want to write a code in Java which is based on keys being pressed on keyboard, then KeyListener is your way a head. This link at Oracle.com has a very nice description of the whole class and a very good example :
http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html
No comments:
Post a Comment