Get default values for Swing-based user interface : UIDefault « Swing « Java Tutorial






import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.swing.UIManager;

public class Main {
  public static void main(String[] args) throws Exception {
    Set defaults = UIManager.getLookAndFeelDefaults().entrySet();
    for (Iterator i = defaults.iterator(); i.hasNext();) {
      Map.Entry entry = (Map.Entry) i.next();
      System.out.print(entry.getKey() + " = ");
      System.out.println(entry.getValue());
    }

  }
}








14.121.UIDefault
14.121.1.UIDefaults ClassUIDefaults Class
14.121.2.Setting a UI Default Value That Is Created at Every Fetch
14.121.3.Setting a UI Default Value That Is Created When Fetched
14.121.4.Getting the Default Values for a Look and Feel
14.121.5.Listing UIDefault Properties
14.121.6.Changing ToolTip background color for Swing Applications
14.121.7.Get default values for Swing-based user interface