This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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(...);

 
Don't get me started about those stupid light bulbs.
 
subject: TextListener
 
Similar Threads
listeners2
how can consume Paste content in the JTextField
NullPointerException occured
JTextField problems
2 textfields 1 model