列出默认swing UI样式

import java.util.Map.Entry;

import javax.swing.*;
import javax.swing.UIDefaults;
import javax.swing.UIManager;


public class UIDeafultsdemo {
    public static void main(String[] args) {
        JButton bt = new JButton();
        JFrame jf = new JFrame();
        JEditorPane jp = new JEditorPane();
        UIDefaults def = UIManager.getDefaults();
        System.out.println(def.size());
        int i=0;
        for(Entry key:def.entrySet())
            System.out.println(""+(++i)+":"+key);
    }
}
原文地址:https://www.cnblogs.com/qqjue/p/2502608.html