44 * with the addition of a String title in a
45 * specified position and justification.
46 * <p>
47 * If the border, font, or color property values are not
48 * specified in the constructor or by invoking the appropriate
49 * set methods, the property values will be defined by the current
50 * look and feel, using the following property names in the
51 * Defaults Table:
52 * <ul>
53 * <li>"TitledBorder.border"
54 * <li>"TitledBorder.font"
55 * <li>"TitledBorder.titleColor"
56 * </ul>
57 * <p>
58 * <strong>Warning:</strong>
59 * Serialized objects of this class will not be compatible with
60 * future Swing releases. The current serialization support is
61 * appropriate for short term storage or RMI between applications running
62 * the same version of Swing. As of 1.4, support for long term storage
63 * of all JavaBeans™
64 * has been added to the <code>java.beans</code> package.
65 * Please see {@link java.beans.XMLEncoder}.
66 *
67 * @author David Kloba
68 * @author Amy Fowler
69 */
70 @SuppressWarnings("serial")
71 public class TitledBorder extends AbstractBorder
72 {
73 /**
74 * The title the border should display.
75 */
76 protected String title;
77 /**
78 * The border.
79 */
80 protected Border border;
81 /**
82 * The position for the title.
83 */
84 protected int titlePosition;
|
44 * with the addition of a String title in a
45 * specified position and justification.
46 * <p>
47 * If the border, font, or color property values are not
48 * specified in the constructor or by invoking the appropriate
49 * set methods, the property values will be defined by the current
50 * look and feel, using the following property names in the
51 * Defaults Table:
52 * <ul>
53 * <li>"TitledBorder.border"
54 * <li>"TitledBorder.font"
55 * <li>"TitledBorder.titleColor"
56 * </ul>
57 * <p>
58 * <strong>Warning:</strong>
59 * Serialized objects of this class will not be compatible with
60 * future Swing releases. The current serialization support is
61 * appropriate for short term storage or RMI between applications running
62 * the same version of Swing. As of 1.4, support for long term storage
63 * of all JavaBeans™
64 * has been added to the {@code java.beans} package.
65 * Please see {@link java.beans.XMLEncoder}.
66 *
67 * @author David Kloba
68 * @author Amy Fowler
69 */
70 @SuppressWarnings("serial")
71 public class TitledBorder extends AbstractBorder
72 {
73 /**
74 * The title the border should display.
75 */
76 protected String title;
77 /**
78 * The border.
79 */
80 protected Border border;
81 /**
82 * The position for the title.
83 */
84 protected int titlePosition;
|