Java tutorial
//package com.java2s; import javax.swing.*; import java.awt.*; public class Main { public static void updateUILookAndFeel(Component c) { try { String plafName = UIManager.getInstalledLookAndFeels()[1].getClassName(); UIManager.setLookAndFeel(plafName); SwingUtilities.updateComponentTreeUI(c); } catch (Exception e) { e.printStackTrace(); } } }