src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java

Print this page




 277             if (count > 0) {
 278                 ComponentUI[] u = new ComponentUI[count];
 279                 for (int i = 0; i < count; i++) {
 280                     u[i] = (ComponentUI)uis.elementAt(i);
 281                 }
 282                 return u;
 283             } else {
 284                 return null;
 285             }
 286         }
 287     }
 288 }
 289 
 290 /**
 291  * We want the Multiplexing LookAndFeel to be quiet and fallback
 292  * gracefully if it cannot find a UI.  This class overrides the
 293  * getUIError method of UIDefaults, which is the method that
 294  * emits error messages when it cannot find a UI class in the
 295  * LAF.
 296  */

 297 class MultiUIDefaults extends UIDefaults {
 298     MultiUIDefaults(int initialCapacity, float loadFactor) {
 299         super(initialCapacity, loadFactor);
 300     }
 301     protected void getUIError(String msg) {
 302         System.err.println("Multiplexing LAF:  " + msg);
 303     }
 304 }


 277             if (count > 0) {
 278                 ComponentUI[] u = new ComponentUI[count];
 279                 for (int i = 0; i < count; i++) {
 280                     u[i] = (ComponentUI)uis.elementAt(i);
 281                 }
 282                 return u;
 283             } else {
 284                 return null;
 285             }
 286         }
 287     }
 288 }
 289 
 290 /**
 291  * We want the Multiplexing LookAndFeel to be quiet and fallback
 292  * gracefully if it cannot find a UI.  This class overrides the
 293  * getUIError method of UIDefaults, which is the method that
 294  * emits error messages when it cannot find a UI class in the
 295  * LAF.
 296  */
 297 @SuppressWarnings("serial") // Superclass is not serializable across versions
 298 class MultiUIDefaults extends UIDefaults {
 299     MultiUIDefaults(int initialCapacity, float loadFactor) {
 300         super(initialCapacity, loadFactor);
 301     }
 302     protected void getUIError(String msg) {
 303         System.err.println("Multiplexing LAF:  " + msg);
 304     }
 305 }