80 import java.beans.PropertyChangeListener;
81 import java.beans.PropertyChangeEvent;
82
83
84 /**
85 * A base class to use in creating a look and feel for Swing.
86 * <p>
87 * Each of the {@code ComponentUI}s provided by {@code
88 * BasicLookAndFeel} derives its behavior from the defaults
89 * table. Unless otherwise noted each of the {@code ComponentUI}
90 * implementations in this package document the set of defaults they
91 * use. Unless otherwise noted the defaults are installed at the time
92 * {@code installUI} is invoked, and follow the recommendations
93 * outlined in {@code LookAndFeel} for installing defaults.
94 * <p>
95 * <strong>Warning:</strong>
96 * Serialized objects of this class will not be compatible with
97 * future Swing releases. The current serialization support is
98 * appropriate for short term storage or RMI between applications running
99 * the same version of Swing. As of 1.4, support for long term storage
100 * of all JavaBeans™
101 * has been added to the <code>java.beans</code> package.
102 * Please see {@link java.beans.XMLEncoder}.
103 *
104 * @author unattributed
105 */
106 @SuppressWarnings("serial") // Same-version serialization only
107 public abstract class BasicLookAndFeel extends LookAndFeel implements Serializable
108 {
109 /**
110 * Whether or not the developer has created a JPopupMenu.
111 */
112 static boolean needsEventHelper;
113
114 /**
115 * Lock used when manipulating clipPlaying.
116 */
117 private transient Object audioLock = new Object();
118 /**
119 * The Clip that is currently playing (set in AudioAction).
120 */
|
80 import java.beans.PropertyChangeListener;
81 import java.beans.PropertyChangeEvent;
82
83
84 /**
85 * A base class to use in creating a look and feel for Swing.
86 * <p>
87 * Each of the {@code ComponentUI}s provided by {@code
88 * BasicLookAndFeel} derives its behavior from the defaults
89 * table. Unless otherwise noted each of the {@code ComponentUI}
90 * implementations in this package document the set of defaults they
91 * use. Unless otherwise noted the defaults are installed at the time
92 * {@code installUI} is invoked, and follow the recommendations
93 * outlined in {@code LookAndFeel} for installing defaults.
94 * <p>
95 * <strong>Warning:</strong>
96 * Serialized objects of this class will not be compatible with
97 * future Swing releases. The current serialization support is
98 * appropriate for short term storage or RMI between applications running
99 * the same version of Swing. As of 1.4, support for long term storage
100 * of all JavaBeans
101 * has been added to the <code>java.beans</code> package.
102 * Please see {@link java.beans.XMLEncoder}.
103 *
104 * @author unattributed
105 */
106 @SuppressWarnings("serial") // Same-version serialization only
107 public abstract class BasicLookAndFeel extends LookAndFeel implements Serializable
108 {
109 /**
110 * Whether or not the developer has created a JPopupMenu.
111 */
112 static boolean needsEventHelper;
113
114 /**
115 * Lock used when manipulating clipPlaying.
116 */
117 private transient Object audioLock = new Object();
118 /**
119 * The Clip that is currently playing (set in AudioAction).
120 */
|