Here you can find the source of setSystemLAF()
public static void setSystemLAF()
//package com.java2s; import javax.swing.*; public class Main { public static void setSystemLAF() { try {//w w w . ja v a2s . c o m UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } } }