Component events are generated when a component is shown, hidden, moved, or resized. AWT automatically deals with component moves and resizing; these events are provided only for notification. Subclasses of ComponentEvent deal with other specific component-level events.
public class java.awt.event.ComponentEvent extends java.awt.AWTEvent { // Constants public final static int COMPONENT_FIRST; public final static int COMPONENT_HIDDEN; public final static int COMPONENT_LAST; public final static int COMPONENT_MOVED; public final static int COMPONENT_RESIZED; public final static int COMPONENT_SHOWN; // Constructors public ComponentEvent (Component source, int id); // Instance Methods public Component getComponent(); public String paramString(); }
Specifies the beginning range of component event ID values.
Event type ID indicating that the component was hidden.
Specifies the ending range of component event ID values.
Event type ID indicating that the component was moved.
Event type ID indicating that the component was resized.
Event type ID indicating that the component was shown.
The object that generated the event.
The event type ID of the event.
Constructs a ComponentEvent with the given characteristics.
The source of this event.
String with current settings of the ComponentEvent.
AWTEvent.paramString()
Helper method for toString() to generate string of current settings.
AWTEvent, Component, ComponentAdapter, ComponentListener, ContainerEvent, FocusEvent, InputEvent, PaintEvent, WindowEvent