29 import sun.awt.AppContext;
30
31 import java.awt.*;
32 import java.awt.event.*;
33 import javax.swing.*;
34 import javax.swing.plaf.basic.*;
35 import javax.swing.border.*;
36 import javax.swing.plaf.*;
37 import java.io.Serializable;
38 import javax.swing.text.View;
39
40
41 /**
42 * RadioButtonUI implementation for MetalRadioButtonUI
43 * <p>
44 * <strong>Warning:</strong>
45 * Serialized objects of this class will not be compatible with
46 * future Swing releases. The current serialization support is
47 * appropriate for short term storage or RMI between applications running
48 * the same version of Swing. As of 1.4, support for long term storage
49 * of all JavaBeans™
50 * has been added to the <code>java.beans</code> package.
51 * Please see {@link java.beans.XMLEncoder}.
52 *
53 * @author Michael C. Albers (Metal modifications)
54 * @author Jeff Dinkins (original BasicRadioButtonCode)
55 */
56 @SuppressWarnings("serial") // Same-version serialization only
57 public class MetalRadioButtonUI extends BasicRadioButtonUI {
58
59 private static final Object METAL_RADIO_BUTTON_UI_KEY = new Object();
60
61 /**
62 * The color of the focused radio button.
63 */
64 protected Color focusColor;
65
66 /**
67 * The color of the selected radio button.
68 */
69 protected Color selectColor;
|
29 import sun.awt.AppContext;
30
31 import java.awt.*;
32 import java.awt.event.*;
33 import javax.swing.*;
34 import javax.swing.plaf.basic.*;
35 import javax.swing.border.*;
36 import javax.swing.plaf.*;
37 import java.io.Serializable;
38 import javax.swing.text.View;
39
40
41 /**
42 * RadioButtonUI implementation for MetalRadioButtonUI
43 * <p>
44 * <strong>Warning:</strong>
45 * Serialized objects of this class will not be compatible with
46 * future Swing releases. The current serialization support is
47 * appropriate for short term storage or RMI between applications running
48 * the same version of Swing. As of 1.4, support for long term storage
49 * of all JavaBeans
50 * has been added to the <code>java.beans</code> package.
51 * Please see {@link java.beans.XMLEncoder}.
52 *
53 * @author Michael C. Albers (Metal modifications)
54 * @author Jeff Dinkins (original BasicRadioButtonCode)
55 */
56 @SuppressWarnings("serial") // Same-version serialization only
57 public class MetalRadioButtonUI extends BasicRadioButtonUI {
58
59 private static final Object METAL_RADIO_BUTTON_UI_KEY = new Object();
60
61 /**
62 * The color of the focused radio button.
63 */
64 protected Color focusColor;
65
66 /**
67 * The color of the selected radio button.
68 */
69 protected Color selectColor;
|