Uses of Class java.awt.event.ComponentEvent (Java Platform SE 8 )
Date: 2018-07-01

## Uses of Class
java.awt.event.ComponentEvent

- Packages that use ComponentEvent
  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.event | Provides for events fired by Swing components.
  javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.

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

    Methods in java.awt with parameters of type ComponentEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | AWTEventMulticaster.`componentHidden(ComponentEvent e)` Handles the componentHidden event by invoking the componentHidden methods on listener-a and listener-b.
    `void` | Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.`componentHidden(ComponentEvent e)`
    `void` | AWTEventMulticaster.`componentMoved(ComponentEvent e)` Handles the componentMoved event by invoking the componentMoved methods on listener-a and listener-b.
    `void` | Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.`componentMoved(ComponentEvent e)`
    `void` | AWTEventMulticaster.`componentResized(ComponentEvent e)` Handles the componentResized event by invoking the componentResized methods on listener-a and listener-b.
    `void` | Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.`componentResized(ComponentEvent e)`
    `void` | AWTEventMulticaster.`componentShown(ComponentEvent e)` Handles the componentShown event by invoking the componentShown methods on listener-a and listener-b.
    `void` | Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.`componentShown(ComponentEvent e)`
    `protected void` | Component.`processComponentEvent(ComponentEvent e)` Processes component events occurring on this component by dispatching them to any registered `ComponentListener` objects.

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

    Subclasses of ComponentEvent in java.awt.event
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ContainerEvent` A low-level event which indicates that a container's contents changed because a component was added or removed.
    `class` | `FocusEvent` A low-level event which indicates that a Component has gained or lost the input focus.
    `class` | `InputEvent` The root event class for all component-level input events.
    `class` | `KeyEvent` An event which indicates that a keystroke occurred in a component.
    `class` | `MouseEvent` An event which indicates that a mouse action occurred in a component.
    `class` | `MouseWheelEvent` An event which indicates that the mouse wheel was rotated in a component.
    `class` | `PaintEvent` The component-level paint event.
    `class` | `WindowEvent` A low-level event that indicates that a window has changed its status.

    Methods in java.awt.event with parameters of type ComponentEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | ComponentListener.`componentHidden(ComponentEvent e)` Invoked when the component has been made invisible.
    `void` | ComponentAdapter.`componentHidden(ComponentEvent e)` Invoked when the component has been made invisible.
    `void` | ComponentListener.`componentMoved(ComponentEvent e)` Invoked when the component's position changes.
    `void` | ComponentAdapter.`componentMoved(ComponentEvent e)` Invoked when the component's position changes.
    `void` | ComponentListener.`componentResized(ComponentEvent e)` Invoked when the component's size changes.
    `void` | ComponentAdapter.`componentResized(ComponentEvent e)` Invoked when the component's size changes.
    `void` | ComponentListener.`componentShown(ComponentEvent e)` Invoked when the component has been made visible.
    `void` | ComponentAdapter.`componentShown(ComponentEvent e)` Invoked when the component has been made visible.

  - ### Uses of ComponentEvent in javax.swing

    Methods in javax.swing with parameters of type ComponentEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | JViewport.ViewListener.`componentResized(ComponentEvent e)`

  - ### Uses of ComponentEvent in javax.swing.event

    Subclasses of ComponentEvent in javax.swing.event
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MenuDragMouseEvent` MenuDragMouseEvent is used to notify interested parties that the menu element has received a MouseEvent forwarded to it under drag conditions.
    `class` | `MenuKeyEvent` MenuKeyEvent is used to notify interested parties that the menu element has received a KeyEvent forwarded to it in a menu tree.

  - ### Uses of ComponentEvent in javax.swing.plaf

    Methods in javax.swing.plaf with parameters of type ComponentEvent
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | LayerUI.`processComponentEvent(ComponentEvent e, JLayer<? extends V> l)` Processes component events occurring on the `JLayer` or any of its subcomponents.

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

    Methods in javax.swing.plaf.basic with parameters of type ComponentEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | BasicInternalFrameUI.ComponentHandler.`componentHidden(ComponentEvent e)`
    `void` | BasicInternalFrameUI.ComponentHandler.`componentMoved(ComponentEvent e)`
    `void` | BasicTreeUI.ComponentHandler.`componentMoved(ComponentEvent e)`
    `void` | BasicInternalFrameUI.ComponentHandler.`componentResized(ComponentEvent e)` Invoked when a JInternalFrame's parent's size changes.
    `void` | BasicSliderUI.ComponentHandler.`componentResized(ComponentEvent e)`
    `void` | BasicInternalFrameUI.ComponentHandler.`componentShown(ComponentEvent e)`

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, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.