Java examples for Swing:Look and Feel
Knowing the Installed Look and Feel on Your Machine
import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; public class Main { public static void main(String[] args) { // Get the list of installed L&F LookAndFeelInfo[] lafList = UIManager.getInstalledLookAndFeels(); // Print the names and class names of all installed L&F for (LookAndFeelInfo lafInfo : lafList) { String name = lafInfo.getName(); String className = lafInfo.getClassName(); System.out.println("Name: " + name + ", Class Name: " + className); }// w w w .ja v a2 s. c om } }