25 package javax.swing.event;
26
27 import java.awt.AWTEvent;
28 import javax.swing.JInternalFrame;
29
30 /**
31 * An <code>AWTEvent</code> that adds support for
32 * <code>JInternalFrame</code> objects as the event source. This class has the
33 * same event types as <code>WindowEvent</code>,
34 * although different IDs are used.
35 * Help on handling internal frame events
36 * is in
37 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/events/internalframelistener.html" target="_top">How to Write an Internal Frame Listener</a>,
38 * a section in <em>The Java Tutorial</em>.
39 * <p>
40 * <strong>Warning:</strong>
41 * Serialized objects of this class will not be compatible with
42 * future Swing releases. The current serialization support is
43 * appropriate for short term storage or RMI between applications running
44 * the same version of Swing. As of 1.4, support for long term storage
45 * of all JavaBeans™
46 * has been added to the <code>java.beans</code> package.
47 * Please see {@link java.beans.XMLEncoder}.
48 *
49 * @see java.awt.event.WindowEvent
50 * @see java.awt.event.WindowListener
51 * @see JInternalFrame
52 * @see InternalFrameListener
53 *
54 * @author Thomas Ball
55 */
56 @SuppressWarnings("serial") // Same-version serialization only
57 public class InternalFrameEvent extends AWTEvent {
58
59 /**
60 * The first number in the range of IDs used for internal frame events.
61 */
62 public static final int INTERNAL_FRAME_FIRST = 25549;
63
64 /**
65 * The last number in the range of IDs used for internal frame events.
|
25 package javax.swing.event;
26
27 import java.awt.AWTEvent;
28 import javax.swing.JInternalFrame;
29
30 /**
31 * An <code>AWTEvent</code> that adds support for
32 * <code>JInternalFrame</code> objects as the event source. This class has the
33 * same event types as <code>WindowEvent</code>,
34 * although different IDs are used.
35 * Help on handling internal frame events
36 * is in
37 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/events/internalframelistener.html" target="_top">How to Write an Internal Frame Listener</a>,
38 * a section in <em>The Java Tutorial</em>.
39 * <p>
40 * <strong>Warning:</strong>
41 * Serialized objects of this class will not be compatible with
42 * future Swing releases. The current serialization support is
43 * appropriate for short term storage or RMI between applications running
44 * the same version of Swing. As of 1.4, support for long term storage
45 * of all JavaBeans
46 * has been added to the <code>java.beans</code> package.
47 * Please see {@link java.beans.XMLEncoder}.
48 *
49 * @see java.awt.event.WindowEvent
50 * @see java.awt.event.WindowListener
51 * @see JInternalFrame
52 * @see InternalFrameListener
53 *
54 * @author Thomas Ball
55 */
56 @SuppressWarnings("serial") // Same-version serialization only
57 public class InternalFrameEvent extends AWTEvent {
58
59 /**
60 * The first number in the range of IDs used for internal frame events.
61 */
62 public static final int INTERNAL_FRAME_FIRST = 25549;
63
64 /**
65 * The last number in the range of IDs used for internal frame events.
|