35
36 /**
37 * Provides the metal look and feel implementation of <code>RootPaneUI</code>.
38 * <p>
39 * <code>MetalRootPaneUI</code> provides support for the
40 * <code>windowDecorationStyle</code> property of <code>JRootPane</code>.
41 * <code>MetalRootPaneUI</code> does this by way of installing a custom
42 * <code>LayoutManager</code>, a private <code>Component</code> to render
43 * the appropriate widgets, and a private <code>Border</code>. The
44 * <code>LayoutManager</code> is always installed, regardless of the value of
45 * the <code>windowDecorationStyle</code> property, but the
46 * <code>Border</code> and <code>Component</code> are only installed/added if
47 * the <code>windowDecorationStyle</code> is other than
48 * <code>JRootPane.NONE</code>.
49 * <p>
50 * <strong>Warning:</strong>
51 * Serialized objects of this class will not be compatible with
52 * future Swing releases. The current serialization support is
53 * appropriate for short term storage or RMI between applications running
54 * the same version of Swing. As of 1.4, support for long term storage
55 * of all JavaBeans™
56 * has been added to the <code>java.beans</code> package.
57 * Please see {@link java.beans.XMLEncoder}.
58 *
59 * @author Terry Kellerman
60 * @since 1.4
61 */
62 @SuppressWarnings("serial") // Same-version serialization only
63 public class MetalRootPaneUI extends BasicRootPaneUI
64 {
65 /**
66 * Keys to lookup borders in defaults table.
67 */
68 private static final String[] borderKeys = new String[] {
69 null, "RootPane.frameBorder", "RootPane.plainDialogBorder",
70 "RootPane.informationDialogBorder",
71 "RootPane.errorDialogBorder", "RootPane.colorChooserDialogBorder",
72 "RootPane.fileChooserDialogBorder", "RootPane.questionDialogBorder",
73 "RootPane.warningDialogBorder"
74 };
75 /**
|
35
36 /**
37 * Provides the metal look and feel implementation of <code>RootPaneUI</code>.
38 * <p>
39 * <code>MetalRootPaneUI</code> provides support for the
40 * <code>windowDecorationStyle</code> property of <code>JRootPane</code>.
41 * <code>MetalRootPaneUI</code> does this by way of installing a custom
42 * <code>LayoutManager</code>, a private <code>Component</code> to render
43 * the appropriate widgets, and a private <code>Border</code>. The
44 * <code>LayoutManager</code> is always installed, regardless of the value of
45 * the <code>windowDecorationStyle</code> property, but the
46 * <code>Border</code> and <code>Component</code> are only installed/added if
47 * the <code>windowDecorationStyle</code> is other than
48 * <code>JRootPane.NONE</code>.
49 * <p>
50 * <strong>Warning:</strong>
51 * Serialized objects of this class will not be compatible with
52 * future Swing releases. The current serialization support is
53 * appropriate for short term storage or RMI between applications running
54 * the same version of Swing. As of 1.4, support for long term storage
55 * of all JavaBeans
56 * has been added to the <code>java.beans</code> package.
57 * Please see {@link java.beans.XMLEncoder}.
58 *
59 * @author Terry Kellerman
60 * @since 1.4
61 */
62 @SuppressWarnings("serial") // Same-version serialization only
63 public class MetalRootPaneUI extends BasicRootPaneUI
64 {
65 /**
66 * Keys to lookup borders in defaults table.
67 */
68 private static final String[] borderKeys = new String[] {
69 null, "RootPane.frameBorder", "RootPane.plainDialogBorder",
70 "RootPane.informationDialogBorder",
71 "RootPane.errorDialogBorder", "RootPane.colorChooserDialogBorder",
72 "RootPane.fileChooserDialogBorder", "RootPane.questionDialogBorder",
73 "RootPane.warningDialogBorder"
74 };
75 /**
|