- All Superinterfaces:
- EventListener
- All Known Implementing Classes:
- AWTEventMulticaster, TextArea.AccessibleAWTTextArea, TextComponent.AccessibleAWTTextComponent, TextField.AccessibleAWTTextField
- See Also:
- Top Examples, Source Code,
TextEvent
void textValueChanged(TextEvent e)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[67]TextListener Tester
By Anonymous on 2005/04/25 01:36:17 Rate
import java.awt.*;
import java.awt.event.*;
public class TextListenerTester extends Frame implements TextListener {
public TextListenerTester ( String s ) {
super ( s ) ;
setLayout ( null ) ;
TextField t = new TextField ( ) ;
t.setSize ( 100,100 ) ;
t.setLocation ( 50,50 ) ;
add ( t ) ;
t.addTextListener ( this ) ;
}
public void textValueChanged ( TextEvent e ) {
System.out.println ( "Text Value Changed" ) ;
}
public static void main ( String [ ] args ) {
TextListenerTester textListenerTester = new TextListenerTester ( "Text Listener Tester" ) ;
textListenerTester.setSize ( 400,400 ) ;
textListenerTester.setVisible ( true ) ;
}
}