43 import javax.swing.plaf.basic.BasicComboBoxRenderer;
44 import javax.swing.plaf.basic.BasicComboBoxEditor;
45
46 import sun.swing.SwingUtilities2;
47 import sun.awt.OSInfo;
48
49 /**
50 * Implements the Motif Look and Feel.
51 * UI classes not implemented specifically for Motif will
52 * default to those implemented in Basic.
53 * <p>
54 * <strong>Warning:</strong>
55 * Serialized objects of this class will not be compatible with
56 * future Swing releases. The current serialization support is appropriate
57 * for short term storage or RMI between applications running the same
58 * version of Swing. A future release of Swing will provide support for
59 * long term persistence.
60 *
61 * @author unattributed
62 */
63 public class MotifLookAndFeel extends BasicLookAndFeel
64 {
65 public String getName() {
66 return "CDE/Motif";
67 }
68
69 public String getID() {
70 return "Motif";
71 }
72
73 public String getDescription() {
74 return "The CDE/Motif Look and Feel";
75 }
76
77
78 public boolean isNativeLookAndFeel() {
79 return OSInfo.getOSType() == OSInfo.OSType.SOLARIS;
80 }
81
82
|
43 import javax.swing.plaf.basic.BasicComboBoxRenderer;
44 import javax.swing.plaf.basic.BasicComboBoxEditor;
45
46 import sun.swing.SwingUtilities2;
47 import sun.awt.OSInfo;
48
49 /**
50 * Implements the Motif Look and Feel.
51 * UI classes not implemented specifically for Motif will
52 * default to those implemented in Basic.
53 * <p>
54 * <strong>Warning:</strong>
55 * Serialized objects of this class will not be compatible with
56 * future Swing releases. The current serialization support is appropriate
57 * for short term storage or RMI between applications running the same
58 * version of Swing. A future release of Swing will provide support for
59 * long term persistence.
60 *
61 * @author unattributed
62 */
63 @SuppressWarnings("serial") // Superclass is not serializable across versions
64 public class MotifLookAndFeel extends BasicLookAndFeel
65 {
66 public String getName() {
67 return "CDE/Motif";
68 }
69
70 public String getID() {
71 return "Motif";
72 }
73
74 public String getDescription() {
75 return "The CDE/Motif Look and Feel";
76 }
77
78
79 public boolean isNativeLookAndFeel() {
80 return OSInfo.getOSType() == OSInfo.OSType.SOLARIS;
81 }
82
83
|