24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Rectangle;
30 import java.awt.Component;
31 import java.io.Serializable;
32 import java.beans.ConstructorProperties;
33
34 /**
35 * A class which provides an empty, transparent border which
36 * takes up space but does no drawing.
37 * <p>
38 * <strong>Warning:</strong>
39 * Serialized objects of this class will not be compatible with
40 * future Swing releases. The current serialization support is
41 * appropriate for short term storage or RMI between applications running
42 * the same version of Swing. As of 1.4, support for long term storage
43 * of all JavaBeans™
44 * has been added to the <code>java.beans</code> package.
45 * Please see {@link java.beans.XMLEncoder}.
46 *
47 * @author David Kloba
48 */
49 @SuppressWarnings("serial")
50 public class EmptyBorder extends AbstractBorder implements Serializable
51 {
52 /**
53 * The left inset of the border.
54 */
55 protected int left;
56 /**
57 * The right inset of the border.
58 */
59 protected int right;
60 /**
61 * The top inset of the border.
62 */
63 protected int top;
64 /**
|
24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Rectangle;
30 import java.awt.Component;
31 import java.io.Serializable;
32 import java.beans.ConstructorProperties;
33
34 /**
35 * A class which provides an empty, transparent border which
36 * takes up space but does no drawing.
37 * <p>
38 * <strong>Warning:</strong>
39 * Serialized objects of this class will not be compatible with
40 * future Swing releases. The current serialization support is
41 * appropriate for short term storage or RMI between applications running
42 * the same version of Swing. As of 1.4, support for long term storage
43 * of all JavaBeans™
44 * has been added to the {@code java.beans} package.
45 * Please see {@link java.beans.XMLEncoder}.
46 *
47 * @author David Kloba
48 */
49 @SuppressWarnings("serial")
50 public class EmptyBorder extends AbstractBorder implements Serializable
51 {
52 /**
53 * The left inset of the border.
54 */
55 protected int left;
56 /**
57 * The right inset of the border.
58 */
59 protected int right;
60 /**
61 * The top inset of the border.
62 */
63 protected int top;
64 /**
|