Here you can find the source of setLookAndFeel()
public static void setLookAndFeel()
//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."); } } }