Java Swing Look and Feel setLookAndFeel()

Here you can find the source of setLookAndFeel()

Description

Set UI look & feel to system look & feel.

License

Open Source License

Exception

Parameter Description
Exception error occurred when setting look & feel

Declaration

public static void setLookAndFeel() throws Exception 

Method Source Code

//package com.java2s;
// distribute, sublicense, and/or sell copies of the Software, and to

import javax.swing.UIManager;

public class Main {
    /**/*from   w  w w  . j  av a2s  .c  o m*/
     * Set UI look & feel to system look & feel.
     * @throws Exception error occurred when setting look & feel
     */
    public static void setLookAndFeel() throws Exception {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
}

Related

  1. setLookAndFeel()
  2. setLookAndFeel()
  3. setLookAndFeel()
  4. setLookAndFeel()
  5. setLookandFeel()
  6. setLookAndFeel()
  7. setLookAndFeel()
  8. setLookAndFeel()
  9. setLookAndFeel(Component comp)