• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you add a keylistener to JCTextField.

 
Pankaj Tendulkar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you add a keylistener to JCTextField.JCTextField is a component in the JClass API.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if it's anything like a JTextField, you use the addKeyListener method. You can add a KeyAdapter so that you only have to implement the method(s) you need or you can add a new KeyListener and implement all the methods.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic