Here you can find the source of lookAndFeelDefault(String style)
public static void lookAndFeelDefault(String style)
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; public class Main { public static void lookAndFeelDefault(String style) { try {/*from ww w . j a va 2s . c om*/ for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if (style.equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (Exception e) { // If Nimbus is not available, you can set the GUI to another look and feel. } } }