Component Event Class:
A Component Event is produced when the size position or visibility of a component is modified. There are four categories of component events. A ComponentEvent class declares integer constants which can be used to identify them. Constants and the meanings are displays here.
COMMPONENT_MOVED The component was moved.
COMPONENT_RESIZED The component was resized.
COMPONENT_HIDDEN The component was hidden
COMPONENT_SHOWN A component became visible.
ComponentEvent has this constructor:
ComponentEvent(Component src, int type)
Above, src is a reference to the object that produced this event. A type of the event is specified through type.
ComponentEvent is the superclass either indirectly or directly of KeyEvent, ContainerEvent, MouseEvent, FocusEvent, and WindowEvent.
A getComponent() method returns the component which produced the event. It is displays here: Component getComponent()