• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TextListener

 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does one attach a TextLister instance to a textField ?
what comes in xxx ?
JTextField mytextfield = new JTextField()
mytextfield.addXXXXXXListener(new MyTextFieldListener());
Thanks
Lakshmi
 
Vinod Venugopal
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately TextListener is used for AWT TextField , so u can add
TextField txt = new TextField();
txt.addTextListener(...);
 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vinod .
It is really unfortunate .

Originally posted by Vinod Venugopal:
Unfortunately TextListener is used for AWT TextField , so u can add
TextField txt = new TextField();
txt.addTextListener(...);

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic