• Post Reply Bookmark Topic Watch Topic
  • New Topic

Listener code for keycode event

 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Could anyone give me the listener code for a keycode event please?
thanks in advance
frank
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank,
Sorry but I could not get your question. because there is no keycode event in java.
instead there is a KeyEvent that is associated with the typing/pressing/releasing of keyboard keys.
and in this KeyEvent class there is a method getKeyCode() which gives us the code of the key that was pressed.
so cud u pls. rephrase your question?
regards
Deekasha
 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deekasha
Sorry about the carelessness. I would like the the listener code for the typing of keys please.
regards
frank
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!