Here you can find the source of setWindowsLookAndFeel()
public static boolean setWindowsLookAndFeel()
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; public class Main { public static final String LOOK_AND_FEEL_WINDOWS = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; /**//w ww. j a va 2 s.c om * Set look and feel of windows * * @return */ public static boolean setWindowsLookAndFeel() { try { UIManager.setLookAndFeel(LOOK_AND_FEEL_WINDOWS); return true; } catch (Exception e) { return false; } } }