[Chapter 20] 20.13 java.awt.event.FocusListener (JDK 1.1)
Author: David Flanagan
Date: Thu Jul 31 16:13:58 1997

#

| Chapter 20 The java.awt.event Package |

## 20.13 java.awt.event.FocusListener (JDK 1.1)

###

This interface defines the methods that an object must implement to "listen" for focus events on AWT components. When a `FocusEvent` occurs, an AWT component notifies its registered `FocusListener` objects by invoking one of their methods.

An easy way to implement this interface is by subclassing the `FocusAdapter` class.

    public abstract interface FocusListener extends EventListener {
        // Public Instance Methods
                public abstract void focusGained(FocusEvent e);
                public abstract void focusLost(FocusEvent e);
    }

### Implemented By:

`AWTEventMulticaster, FocusAdapter`

### Passed To:

`AWTEventMulticaster.add(), AWTEventMulticaster.remove(), Component.addFocusListener(), Component.removeFocusListener()`

### Returned By:

`AWTEventMulticaster.add(), AWTEventMulticaster.remove()`

java.awt.event.FocusEvent (JDK 1.1) |  | java.awt.event.InputEvent (JDK 1.1)