ComponentEventNameComponentEvent
DescriptionComponent 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. Class Definition
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(); } ConstantsCOMPONENT_FIRSTpublic final static int COMPONENT_FIRSTSpecifies the beginning range of component event ID values. COMPONENT_HIDDENpublic final static int COMPONENT_HIDDENEvent type ID indicating that the component was hidden. COMPONENT_LASTpublic final static int COMPONENT_LASTSpecifies the ending range of component event ID values. COMPONENT_MOVEDpublic final static int COMPONENT_MOVEDEvent type ID indicating that the component was moved. COMPONENT_RESIZEDpublic final static int COMPONENT_RESIZEDEvent type ID indicating that the component was resized. COMPONENT_SHOWNpublic final static int COMPONENT_SHOWNEvent type ID indicating that the component was shown. ConstructorsComponentEventpublic ComponentEvent (Component source, int id)
Instance MethodsgetComponentpublic Component getComponent()
paramStringpublic String paramString()
See AlsoAWTEvent, Component, ComponentAdapter, ComponentListener, ContainerEvent, FocusEvent, InputEvent, PaintEvent, WindowEvent |
|