Here you can find the source of setLAF(String LAFName)
private static void setLAF(String LAFName) throws ClassNotFoundException, IllegalAccessException, UnsupportedLookAndFeelException, InstantiationException
//package com.java2s; /*/*from www . jav a2 s .c om*/ * Copyright (c) 2013, Bui Nguyen Thang, thang.buinguyen@gmail.com, thangbui.net. All rights reserved. * Licensed under the GNU General Public License version 2.0 (GPLv2) * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html */ import javax.swing.*; public class Main { private static void setLAF(String LAFName) throws ClassNotFoundException, IllegalAccessException, UnsupportedLookAndFeelException, InstantiationException { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if (LAFName.equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } }