Here you can find the source of setSystemLookAndFeel()
public static void setSystemLookAndFeel()
//package com.java2s; //License from project: LGPL import javax.swing.*; public class Main { public static void setSystemLookAndFeel() { try {//from w ww . j av a2 s . co m UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); } } }