Lines Matching defs:newLookAndFeel
495 * Sets the current look and feel to {@code newLookAndFeel}.
497 * uninitialize} is invoked on it. If {@code newLookAndFeel} is
500 * newLookAndFeel.getDefaults()} replace those of the defaults
501 * from the previous look and feel. If the {@code newLookAndFeel} is
511 * @param newLookAndFeel {@code LookAndFeel} to install
513 * {@code newLookAndFeel} is {@code non-null} and
514 * {@code newLookAndFeel.isSupportedLookAndFeel()} returns
518 public static void setLookAndFeel(LookAndFeel newLookAndFeel)
521 if ((newLookAndFeel != null) && !newLookAndFeel.isSupportedLookAndFeel()) {
522 String s = newLookAndFeel.toString() + " not supported on this platform";
532 lafState.lookAndFeel = newLookAndFeel;
533 if (newLookAndFeel != null) {
535 newLookAndFeel.initialize();
536 lafState.setLookAndFeelDefaults(newLookAndFeel.getDefaults());
546 newLookAndFeel);