Here you can find the source of printDefaults()
public static final void printDefaults()
//package com.java2s; import javax.swing.*; import java.util.Enumeration; public class Main { /**/*from w w w . j av a 2 s .c o m*/ * Convenience method to print all the UI settings to System.out. */ public static final void printDefaults() { UIDefaults defaults = UIManager.getDefaults(); Enumeration<Object> keys = defaults.keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); System.out.println(key + ": " + defaults.get(key)); } } }