Java Swing UIManager list installed look and feel

Description

Java Swing UIManager list installed look and feel

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);
    }//from ww  w  .  java2s.  co  m
  }
}



PreviousNext

Related