• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

KeyPress event example for say Key 'R'

 
Gautam De
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, could anybody help me wit an example(plz complete codes!!) of KeyPress events, say something like , an event to be executed on the key press event of the key 'R'.
Tried to follow the syntax on the various Java sites , couldnt get it rite...Thanx.
 
Shane Roylance
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a brief example, at least it works for me.

[ March 30, 2004: Message edited by: Shane Roylance ]
[ March 30, 2004: Message edited by: Shane Roylance ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic