< prev index next >

## src/java.desktop/share/classes/javax/swing/UIManager.java

Print this page

    *** 604,622 ****
           * name, using the current thread's context class loader, and
           * passes it to {@code setLookAndFeel(LookAndFeel)}.
           *
           * @param className  a string specifying the name of the class that implements
           *        the look and feel
    !      * @exception ClassNotFoundException if the <code>LookAndFeel</code>
           *           class could not be found
    !      * @exception InstantiationException if a new instance of the class
           *          couldn't be created
    !      * @exception IllegalAccessException if the class or initializer isn't accessible
    !      * @exception UnsupportedLookAndFeelException if
           *          <code>lnf.isSupportedLookAndFeel()</code> is false
           * @throws ClassCastException if {@code className} does not identify
           *         a class that extends {@code LookAndFeel}
           */
          @SuppressWarnings("deprecation")
          public static void setLookAndFeel(String className)
              throws ClassNotFoundException,
                     InstantiationException,
    --- 604,623 ----
           * name, using the current thread's context class loader, and
           * passes it to {@code setLookAndFeel(LookAndFeel)}.
           *
           * @param className  a string specifying the name of the class that implements
           *        the look and feel
    !      * @throws ClassNotFoundException if the <code>LookAndFeel</code>
           *           class could not be found
    !      * @throws InstantiationException if a new instance of the class
           *          couldn't be created
    !      * @throws IllegalAccessException if the class or initializer isn't accessible
    !      * @throws UnsupportedLookAndFeelException if
           *          <code>lnf.isSupportedLookAndFeel()</code> is false
           * @throws ClassCastException if {@code className} does not identify
           *         a class that extends {@code LookAndFeel}
    +      * @throws NullPointerException if {@code className} is {@code null}
           */
          @SuppressWarnings("deprecation")
          public static void setLookAndFeel(String className)
              throws ClassNotFoundException,
                     InstantiationException,

< prev index next >