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