Here you can find the source of setDefaultLookAndFeel()
public static void setDefaultLookAndFeel()
//package com.java2s; import javax.swing.*; public class Main { /**/*from ww w. j a v a 2 s . co m*/ * Set the system default look and feel. * @see javax.swing.UIManager */ public static void setDefaultLookAndFeel() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } } }