Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)

Class java.awt.event.WindowEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----java.awt.event.ComponentEvent
                           |
                           +----java.awt.event.WindowEvent

public class WindowEvent
extends ComponentEvent

The window-level event.


Variable Index

WINDOW_ACTIVATED
The window activated event type.
WINDOW_CLOSED
The window closed event type.
WINDOW_CLOSING
The window closing event type.
WINDOW_DEACTIVATED
The window deactivated event type.
WINDOW_DEICONIFIED
The window deiconified event type.
WINDOW_FIRST
Marks the first integer id for the range of window event ids.
WINDOW_ICONIFIED
The window iconified event type.
WINDOW_LAST
Marks the last integer id for the range of window event ids.
WINDOW_OPENED
The window opened event type.

Constructor Index

WindowEvent(Window, int)
Constructs a WindowEvent object with the specified source window and type.

Method Index

getWindow()
Returns the window where this event originated.
paramString()

Variables

WINDOW_FIRST
 public static final int WINDOW_FIRST
Marks the first integer id for the range of window event ids.

WINDOW_LAST
 public static final int WINDOW_LAST
Marks the last integer id for the range of window event ids.

WINDOW_OPENED
 public static final int WINDOW_OPENED
The window opened event type. This event is delivered only the first time a window is made visible.

WINDOW_CLOSING
 public static final int WINDOW_CLOSING
The window closing event type. This event is delivered when the user selects "Quit" from the window's system menu. If the program does not explicitly hide or destroy the window as a result of this event, the window close operation will be cancelled.

WINDOW_CLOSED
 public static final int WINDOW_CLOSED
The window closed event type. This event is delivered after the window has been closed as the result of a call to hide or destroy.

WINDOW_ICONIFIED
 public static final int WINDOW_ICONIFIED
The window iconified event type.

WINDOW_DEICONIFIED
 public static final int WINDOW_DEICONIFIED
The window deiconified event type.

WINDOW_ACTIVATED
 public static final int WINDOW_ACTIVATED
The window activated event type.

WINDOW_DEACTIVATED
 public static final int WINDOW_DEACTIVATED
The window deactivated event type.


Constructors

WindowEvent
 public WindowEvent(Window source,
                    int id)
Constructs a WindowEvent object with the specified source window and type.

Parameters:
source - the component where the event originated

Methods

getWindow
 public Window getWindow()
Returns the window where this event originated.

paramString
 public String paramString()
Overrides:
paramString in class ComponentEvent

Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)