AWT WindowEvent Class

The object of this class represents the change in state of a window.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.

Class declaration

Following is the declaration for java.awt.event.WindowEvent class:

public class WindowEvent
extends ComponentEvent

Field

Following are the fields for java.awt.event.WindowEvent class:

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.