152 }
153
154 public void setBorder(Border b) {
155 if (!(b instanceof UIResource)) {
156 super.setBorder(b);
157 }
158 }
159 }
160
161 /**
162 * A subclass of BasicComboBoxEditor that implements UIResource.
163 * BasicComboBoxEditor doesn't implement UIResource
164 * directly so that applications can safely override the
165 * cellRenderer property with BasicListCellRenderer subclasses.
166 * <p>
167 * <strong>Warning:</strong>
168 * Serialized objects of this class will not be compatible with
169 * future Swing releases. The current serialization support is
170 * appropriate for short term storage or RMI between applications running
171 * the same version of Swing. As of 1.4, support for long term storage
172 * of all JavaBeans™
173 * has been added to the <code>java.beans</code> package.
174 * Please see {@link java.beans.XMLEncoder}.
175 */
176 @SuppressWarnings("serial") // Same-version serialization only
177 public static class UIResource extends BasicComboBoxEditor
178 implements javax.swing.plaf.UIResource {
179 }
180 }
|
152 }
153
154 public void setBorder(Border b) {
155 if (!(b instanceof UIResource)) {
156 super.setBorder(b);
157 }
158 }
159 }
160
161 /**
162 * A subclass of BasicComboBoxEditor that implements UIResource.
163 * BasicComboBoxEditor doesn't implement UIResource
164 * directly so that applications can safely override the
165 * cellRenderer property with BasicListCellRenderer subclasses.
166 * <p>
167 * <strong>Warning:</strong>
168 * Serialized objects of this class will not be compatible with
169 * future Swing releases. The current serialization support is
170 * appropriate for short term storage or RMI between applications running
171 * the same version of Swing. As of 1.4, support for long term storage
172 * of all JavaBeans
173 * has been added to the <code>java.beans</code> package.
174 * Please see {@link java.beans.XMLEncoder}.
175 */
176 @SuppressWarnings("serial") // Same-version serialization only
177 public static class UIResource extends BasicComboBoxEditor
178 implements javax.swing.plaf.UIResource {
179 }
180 }
|