Java Swing Look and Feel setLookAndFeel()

Here you can find the source of setLookAndFeel()

Description

The standard look and feel for the system is used.

License

Open Source License

Declaration

public static void setLookAndFeel() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.UIManager;

public class Main {
    /**//  w ww.  ja v a2 s .c  om
     * The standard look and feel for the system is used.
     */
    public static void setLookAndFeel() {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            System.err.println("Couldn't use the system look.");
        }
    }
}

Related

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