Here you can find the source of setJavaLookAndFeel()
public static void setJavaLookAndFeel()
//package com.java2s; //License from project: Open Source License import javax.swing.*; public class Main { public static void setJavaLookAndFeel() { try {/*from ww w. j a va2 s . co m*/ UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); } catch (Exception e) { } } }