Here you can find the source of getSysDefLookandFeel()
public static void getSysDefLookandFeel()
//package com.java2s; //License from project: LGPL import javax.swing.UIManager; public class Main { public static void getSysDefLookandFeel() { String lookandfeel = UIManager.getSystemLookAndFeelClassName(); try {// w w w . j a v a 2s . c om UIManager.setLookAndFeel(lookandfeel); } catch (Exception e) { e.printStackTrace(); } } }