21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.plaf.metal;
27
28 import javax.swing.*;
29 import javax.swing.plaf.*;
30 import javax.swing.plaf.basic.*;
31 import java.awt.*;
32
33 /**
34 * The Metal implementation of ProgressBarUI.
35 * <p>
36 * <strong>Warning:</strong>
37 * Serialized objects of this class will not be compatible with
38 * future Swing releases. The current serialization support is
39 * appropriate for short term storage or RMI between applications running
40 * the same version of Swing. As of 1.4, support for long term storage
41 * of all JavaBeans™
42 * has been added to the <code>java.beans</code> package.
43 * Please see {@link java.beans.XMLEncoder}.
44 *
45 * @author Michael C. Albers
46 */
47 @SuppressWarnings("serial") // Same-version serialization only
48 public class MetalProgressBarUI extends BasicProgressBarUI {
49
50 private Rectangle innards;
51 private Rectangle box;
52
53 /**
54 * Constructs an instance of {@code MetalProgressBarUI}.
55 *
56 * @param c a component
57 * @return an instance of {@code MetalProgressBarUI}
58 */
59 public static ComponentUI createUI(JComponent c) {
60 return new MetalProgressBarUI();
61 }
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.plaf.metal;
27
28 import javax.swing.*;
29 import javax.swing.plaf.*;
30 import javax.swing.plaf.basic.*;
31 import java.awt.*;
32
33 /**
34 * The Metal implementation of ProgressBarUI.
35 * <p>
36 * <strong>Warning:</strong>
37 * Serialized objects of this class will not be compatible with
38 * future Swing releases. The current serialization support is
39 * appropriate for short term storage or RMI between applications running
40 * the same version of Swing. As of 1.4, support for long term storage
41 * of all JavaBeans
42 * has been added to the <code>java.beans</code> package.
43 * Please see {@link java.beans.XMLEncoder}.
44 *
45 * @author Michael C. Albers
46 */
47 @SuppressWarnings("serial") // Same-version serialization only
48 public class MetalProgressBarUI extends BasicProgressBarUI {
49
50 private Rectangle innards;
51 private Rectangle box;
52
53 /**
54 * Constructs an instance of {@code MetalProgressBarUI}.
55 *
56 * @param c a component
57 * @return an instance of {@code MetalProgressBarUI}
58 */
59 public static ComponentUI createUI(JComponent c) {
60 return new MetalProgressBarUI();
61 }
|