[Chapter 21] ComponentListener
Author: John Zukowski
Date: Thu Jul 31 15:21:33 1997

#

| Chapter 21 java.awt.event Reference |

# ComponentListener

## Name

ComponentListener

##

## Description

Objects that implement the `ComponentListener` interface can receive `ComponentEvent` 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.ComponentListener
       extends java.util.EventListener {
      // Instance Methods
      public abstract void componentHidden (ComponentEvent e);
      public abstract void componentMoved (ComponentEvent e);
      public abstract void componentResized (ComponentEvent e);
      public abstract void componentShown (ComponentEvent e);
    }

## Interface Methods

### componentHidden

#### public abstract void componentHidden (ComponentEvent e)

Parameters

  e

    The component event that occurred.

Description

  Notifies the `ComponentListener` that a component was hidden.

### componentMoved

#### public abstract void componentMoved (ComponentEvent e)

Parameters

  e

    The component event that occurred.

Description

  Notifies the `ComponentListener` that a component was moved.

### componentResized

#### public abstract void componentResized (ComponentEvent e)

Parameters

  e

    The component event that occurred.

Description

  Notifies the `ComponentListener` that a component was resized.

### componentShown

#### public abstract void componentShown (ComponentEvent e)

Parameters

  e

    The component event that occurred.

Description

  Notifies the `ComponentListener` that a component was shown.

## See Also

`AWTEventMulticaster`, `ComponentAdapter`, `ComponentEvent`, `EventListener`

ComponentEvent |  | ContainerAdapter