Beginning of DocumentListener

Listing 6 shows the beginning of the definition, instantiation, and registration

Listing 6. Beginning of DocumentListener on Red text field.
    redField.getDocument().addDocumentListener(
      new DocumentListener(){
      
        public void changedUpdate(DocumentEvent e){
          //Empty method - not needed
        }//end changedUpdate

File: ay.htm [Next] [Prev]