26 package javax.swing.plaf.metal;
27
28 import java.awt.*;
29 import java.awt.event.*;
30 import javax.swing.*;
31 import javax.swing.plaf.*;
32 import javax.swing.border.*;
33 import javax.swing.plaf.basic.*;
34 import java.io.Serializable;
35 import java.beans.*;
36
37
38 /**
39 * Metal UI for JComboBox
40 * <p>
41 * <strong>Warning:</strong>
42 * Serialized objects of this class will not be compatible with
43 * future Swing releases. The current serialization support is
44 * appropriate for short term storage or RMI between applications running
45 * the same version of Swing. As of 1.4, support for long term storage
46 * of all JavaBeans™
47 * has been added to the <code>java.beans</code> package.
48 * Please see {@link java.beans.XMLEncoder}.
49 *
50 * @see MetalComboBoxEditor
51 * @see MetalComboBoxButton
52 * @author Tom Santos
53 */
54 @SuppressWarnings("serial") // Same-version serialization only
55 public class MetalComboBoxUI extends BasicComboBoxUI {
56
57 /**
58 * Constructs an instance of {@code MetalComboBoxUI}.
59 *
60 * @param c a component
61 * @return an instance of {@code MetalComboBoxUI}
62 */
63 public static ComponentUI createUI(JComponent c) {
64 return new MetalComboBoxUI();
65 }
66
|
26 package javax.swing.plaf.metal;
27
28 import java.awt.*;
29 import java.awt.event.*;
30 import javax.swing.*;
31 import javax.swing.plaf.*;
32 import javax.swing.border.*;
33 import javax.swing.plaf.basic.*;
34 import java.io.Serializable;
35 import java.beans.*;
36
37
38 /**
39 * Metal UI for JComboBox
40 * <p>
41 * <strong>Warning:</strong>
42 * Serialized objects of this class will not be compatible with
43 * future Swing releases. The current serialization support is
44 * appropriate for short term storage or RMI between applications running
45 * the same version of Swing. As of 1.4, support for long term storage
46 * of all JavaBeans
47 * has been added to the <code>java.beans</code> package.
48 * Please see {@link java.beans.XMLEncoder}.
49 *
50 * @see MetalComboBoxEditor
51 * @see MetalComboBoxButton
52 * @author Tom Santos
53 */
54 @SuppressWarnings("serial") // Same-version serialization only
55 public class MetalComboBoxUI extends BasicComboBoxUI {
56
57 /**
58 * Constructs an instance of {@code MetalComboBoxUI}.
59 *
60 * @param c a component
61 * @return an instance of {@code MetalComboBoxUI}
62 */
63 public static ComponentUI createUI(JComponent c) {
64 return new MetalComboBoxUI();
65 }
66
|