[Chapter 21] TextListener

#

| Chapter 21 java.awt.event Reference |

# TextListener

## Name

TextListener

##

## Description

Objects that implement the `TextListener` interface can receive `TextEvent` objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.

## Interface Definition

    public abstract interface java.awt.event.TextListener
       extends java.util.EventListener {
      // Interface Methods
      public abstract void textValueChanged (TextEvent e);
    }

## Interface Methods

### textValueChanged

#### public abstract void textValueChanged (TextEvent e)

Parameters

  e

    The text event that occurred.

Description

  Notifies the `TextListener` that an event occurred.

## See Also

`AWTEventMulticaster`, `EventListener`, `TextEvent`

TextEvent |  | WindowAdapter