Java tutorial
//package com.java2s; import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; public class Main { public static void applyLookAndFeel(String lookAndFeel) { try { for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if (lookAndFeel.equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (Exception e) { throw new RuntimeException(e); } } }