java.awt.event
Class WindowEventjava.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--java.awt.event.ComponentEvent | +--java.awt.event.WindowEvent
- All Implemented Interfaces:
- Serializable
- public class WindowEvent
- extends ComponentEvent
A low-level event that indicates that a window has changed its status. This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window.
The event is passed to every WindowListener or WindowAdapter object which registered to receive such events using the window's addWindowListener method. (WindowAdapter objects implement the WindowListener interface.) Each such listener object gets this WindowEvent when the event occurs.
- Since:
- JDK1.1
- See Also:
- WindowAdapter, WindowListener, Tutorial: Writing a Window Listener, Reference: The Java Class Libraries (update file), Serialized Form
Field Summary
static int WINDOW_ACTIVATED
The window-activated event type.static int WINDOW_CLOSED
The window closed event.static int WINDOW_CLOSING
The "window is closing" event.static int WINDOW_DEACTIVATED
The window-deactivated event type.static int WINDOW_DEICONIFIED
The window deiconified event type.static int WINDOW_FIRST
The first number in the range of ids used for window events.static int WINDOW_GAINED_FOCUS
The window-gained-focus event type.static int WINDOW_ICONIFIED
The window iconified event.static int WINDOW_LAST
The last number in the range of ids used for window events.static int WINDOW_LOST_FOCUS
The window-lost-focus event type.static int WINDOW_OPENED
The window opened event.static int WINDOW_STATE_CHANGED
The window-state-changed event type.
Fields inherited from class java.awt.event.ComponentEvent COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
Fields inherited from class java.awt.AWTEvent ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CON