Here you can find the source of setLookAndFeel(String laf)
public static void setLookAndFeel(String laf)
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; public class Main { public static void setLookAndFeel(String laf) { try {//w ww.j av a 2s. c o m UIManager.setLookAndFeel(laf); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { e.printStackTrace(); } } }