Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any Key Press with KeyListener

 
Keith Spriggs
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I need a bit of help with this one.

What I want to do is report when key has pressed.

The issue is that do have I have to specify all possible keys individually or is there a method or some code that allows me to do this.

I have a method that needs to send back a string to the user.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a link to the tutorial: How to Write a Key Listener.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic