Here you can find the source of setLookAndFeel()
Parameter | Description |
---|---|
Exception | error occurred when setting look & feel |
public static void setLookAndFeel() throws Exception
//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()); } }