35 * low-level event is generated by a Window object when it is opened, closed,
36 * activated, deactivated, iconified, or deiconified, or when focus is
37 * transfered into or out of the Window.
38 * <P>
39 * The event is passed to every <code>WindowListener</code>
40 * or <code>WindowAdapter</code> object which registered to receive such
41 * events using the window's <code>addWindowListener</code> method.
42 * (<code>WindowAdapter</code> objects implement the
43 * <code>WindowListener</code> interface.) Each such listener object
44 * gets this <code>WindowEvent</code> when the event occurs.
45 * <p>
46 * An unspecified behavior will be caused if the {@code id} parameter
47 * of any particular {@code WindowEvent} instance is not
48 * in the range from {@code WINDOW_FIRST} to {@code WINDOW_LAST}.
49 *
50 * @author Carl Quinn
51 * @author Amy Fowler
52 *
53 * @see WindowAdapter
54 * @see WindowListener
55 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/windowlistener.html">Tutorial: Writing a Window Listener</a>
56 *
57 * @since JDK1.1
58 */
59 public class WindowEvent extends ComponentEvent {
60
61 /**
62 * The first number in the range of ids used for window events.
63 */
64 public static final int WINDOW_FIRST = 200;
65
66 /**
67 * The window opened event. This event is delivered only
68 * the first time a window is made visible.
69 */
70 @Native public static final int WINDOW_OPENED = WINDOW_FIRST; // 200
71
72 /**
73 * The "window is closing" event. This event is delivered when
74 * the user attempts to close the window from the window's system menu.
75 * If the program does not explicitly hide or dispose the window
|
35 * low-level event is generated by a Window object when it is opened, closed,
36 * activated, deactivated, iconified, or deiconified, or when focus is
37 * transfered into or out of the Window.
38 * <P>
39 * The event is passed to every <code>WindowListener</code>
40 * or <code>WindowAdapter</code> object which registered to receive such
41 * events using the window's <code>addWindowListener</code> method.
42 * (<code>WindowAdapter</code> objects implement the
43 * <code>WindowListener</code> interface.) Each such listener object
44 * gets this <code>WindowEvent</code> when the event occurs.
45 * <p>
46 * An unspecified behavior will be caused if the {@code id} parameter
47 * of any particular {@code WindowEvent} instance is not
48 * in the range from {@code WINDOW_FIRST} to {@code WINDOW_LAST}.
49 *
50 * @author Carl Quinn
51 * @author Amy Fowler
52 *
53 * @see WindowAdapter
54 * @see WindowListener
55 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html">Tutorial: Writing a Window Listener</a>
56 *
57 * @since JDK1.1
58 */
59 public class WindowEvent extends ComponentEvent {
60
61 /**
62 * The first number in the range of ids used for window events.
63 */
64 public static final int WINDOW_FIRST = 200;
65
66 /**
67 * The window opened event. This event is delivered only
68 * the first time a window is made visible.
69 */
70 @Native public static final int WINDOW_OPENED = WINDOW_FIRST; // 200
71
72 /**
73 * The "window is closing" event. This event is delivered when
74 * the user attempts to close the window from the window's system menu.
75 * If the program does not explicitly hide or dispose the window
|