我认为没有定义的标准密钥集.但您可以尝试使用这段代码按字母顺序列出当前可用的代码:
List<String> colors = new ArrayList<String>();
for (Map.Entry<Object, Object> entry : UIManager.getDefaults().entrySet()) {
if (entry.getValue() instanceof Color) {
colors.add((String) entry.getKey()); // all the keys are strings
}
}
Collections.sort(colors);
for (String name : colors)
System.out.println(name);
Run Code Online (Sandbox Code Playgroud)
这会产生一个列表太长而无法在此重现.
| 归档时间: |
|
| 查看次数: |
21604 次 |
| 最近记录: |