wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes TextListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TextListener" Watch "TextListener" New topic
Author

TextListener

Lakshmi Anantharaman
Ranch Hand

Joined: Aug 01, 2001
Posts: 58
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

Joined: Dec 06, 2000
Posts: 148
Unfortunately TextListener is used for AWT TextField , so u can add
TextField txt = new TextField();
txt.addTextListener(...);


- Vinod<br />-------<br />SCJP2
Lakshmi Anantharaman
Ranch Hand

Joined: Aug 01, 2001
Posts: 58
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(...);

 
 
subject: TextListener