Java Swing UIManager get all default settings

Description

Java Swing UIManager get all default settings

import java.util.Enumeration;

import javax.swing.UIManager;

public class Main {
  public static void main(String[] args) {

    Enumeration keys = UIManager.getDefaults().keys();
    while (keys.hasMoreElements()) {
      Object key = keys.nextElement();
      Object value = UIManager.get(key);
      System.out.println(key + "=" + value);

    }//ww  w.  j  a v a  2 s.c o  m
  }
}



PreviousNext

Related