Uses of Interface java.awt.event.ComponentListener (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Interface
java.awt.event.ComponentListener

- Packages that use ComponentListener
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated.

- - ### Uses of ComponentListener in java.awt

    Classes in java.awt that implement ComponentListener
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AWTEventMulticaster` `AWTEventMulticaster` implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the `java.awt.event` package.
    `protected class` | `Component.AccessibleAWTComponent.AccessibleAWTComponentHandler` Fire PropertyChange listener, if one is registered, when shown/hidden..

    Fields in java.awt declared as ComponentListener
    Modifier and Type | Field and Description
    --- | ---
    `protected ComponentListener` | Component.AccessibleAWTComponent.`accessibleAWTComponentHandler`

    Methods in java.awt that return ComponentListener
    Modifier and Type | Method and Description
    --- | ---
    `static ComponentListener` | AWTEventMulticaster.`add(ComponentListener a, ComponentListener b)` Adds component-listener-a with component-listener-b and returns the resulting multicast listener.
    `ComponentListener[]` | Component.`getComponentListeners()` Returns an array of all the component listeners registered on this component.
    `static ComponentListener` | AWTEventMulticaster.`remove(ComponentListener l, ComponentListener oldl)` Removes the old component-listener from component-listener-l and returns the resulting multicast listener.

    Methods in java.awt with parameters of type ComponentListener
    Modifier and Type | Method and Description
    --- | ---
    `static ComponentListener` | AWTEventMulticaster.`add(ComponentListener a, ComponentListener b)` Adds component-listener-a with component-listener-b and returns the resulting multicast listener.
    `void` | Component.`addComponentListener(ComponentListener l)` Adds the specified component listener to receive component events from this component.
    `static ComponentListener` | AWTEventMulticaster.`remove(ComponentListener l, ComponentListener oldl)` Removes the old component-listener from component-listener-l and returns the resulting multicast listener.
    `void` | Component.`removeComponentListener(ComponentListener l)` Removes the specified component listener so that it no longer receives component events from this component.

  - ### Uses of ComponentListener in java.awt.event

    Classes in java.awt.event that implement ComponentListener
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ComponentAdapter` An abstract adapter class for receiving component events.

  - ### Uses of ComponentListener in javax.swing

    Classes in javax.swing that implement ComponentListener
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `JViewport.ViewListener` A listener for the view.

  - ### Uses of ComponentListener in javax.swing.plaf.basic

    Classes in javax.swing.plaf.basic that implement ComponentListener
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `BasicInternalFrameUI.ComponentHandler`
    `class` | `BasicSliderUI.ComponentHandler` Listener for resizing events.
    `class` | `BasicTreeUI.ComponentHandler` Updates the preferred size when scrolling (if necessary).

    Fields in javax.swing.plaf.basic declared as ComponentListener
    Modifier and Type | Field and Description
    --- | ---
    `protected ComponentListener` | BasicInternalFrameUI.`componentListener`
    `protected ComponentListener` | BasicSliderUI.`componentListener`

    Methods in javax.swing.plaf.basic that return ComponentListener
    Modifier and Type | Method and Description
    --- | ---
    `protected ComponentListener` | BasicTreeUI.`createComponentListener()` Creates and returns a new ComponentHandler.
    `protected ComponentListener` | BasicInternalFrameUI.`createComponentListener()`
    `protected ComponentListener` | BasicSliderUI.`createComponentListener(JSlider slider)`

  - ### Uses of ComponentListener in javax.swing.plaf.synth

    Methods in javax.swing.plaf.synth that return ComponentListener
    Modifier and Type | Method and Description
    --- | ---
    `protected ComponentListener` | SynthInternalFrameUI.`createComponentListener()`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.