java.awt.event.ComponentEvent (JDK 1.1)
An event of this type serves as notification that the source Component has been moved, resized, shown, or hidden. Note that this event is a notification only: the AWT handles these Component operations internally, and the recipient of the event need take no action itself.
getComponent() returns the component that was moved, resized, shown or hidden. It is simply a convenient alternative to getSource().
getID() returns one of four COMPONENT_ constants to indicate what operation was performed on the Component.
public classComponentEventextends AWTEvent { //Public ConstructorpublicComponentEvent(Componentsource, intid); //Constantspublic static final intCOMPONENT_FIRST; public static final intCOMPONENT_HIDDEN; public static final intCOMPONENT_LAST; public static final intCOMPONENT_MOVED; public static final intCOMPONENT_RESIZED; public static final intCOMPONENT_SHOWN; //Public Instance Methodspublic ComponentgetComponent(); public StringparamString(); //Overrides AWTEvent}
Hierarchy:
Object->EventObject(Serializable)->AWTEvent->ComponentEvent
Extended By:
ContainerEvent, FocusEvent, InputEvent, PaintEvent, WindowEvent
Passed To:
AWTEventMulticaster.componentHidden(), AWTEventMulticaster.componentMoved(), AWTEventMulticaster.componentResized(), AWTEventMulticaster.componentShown(), Component.processComponentEvent(), ComponentAdapter.componentHidden(), ComponentAdapter.componentMoved(), ComponentAdapter.componentResized(), ComponentAdapter.componentShown(), ComponentListener.componentHidden(), ComponentListener.componentMoved(), ComponentListener.componentResized(), ComponentListener.componentShown()