Get default values for Swing-based user interface : UI « Swing JFC « Java





Get default values for Swing-based user interface

  


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());
    }

  }
}

   
    
  










Related examples in the same category

1.Setting a UI Default Value That Is Created When Fetched
2.Getting the Default Values for a Look and Feel
3.Setting a UI Default Value That Is Created at Every Fetch
4.Replaces the standard scrollbar UI with a custom oneReplaces the standard scrollbar UI with a custom one
5.UIManager defaultsUIManager defaults
6.Retrieve information of all available UIManager defaults
7.How to change the look and feel of Swing applications
8.UIManager resources to tweak the look of applicationsUIManager resources to tweak the look of applications
9.Displays the contents of the UIDefaults hash map for the current look and feel.