Java Swing - List of UIDefaults [Updated: Nov 23, 2017, Created: Nov 16, 2017] |
|
||
Following code prints the list of package com.logicbig.example; import javax.swing.*; import java.util.*; public class UiDefaultsList { public static void main(String[] args) throws Exception { List<Map.Entry<Object, Object>> entries = new ArrayList<>(UIManager.getLookAndFeelDefaults().entrySet()); Collections.sort(entries, Comparator.comparing(e -> Objects.toString(e.getKey()))); entries.forEach(UiDefaultsList::printEntry); } private static void printEntry(Map.Entry<Object, Object> e) { System.out.printf("%-53s= %s%n", e.getKey(), e.getValue().getClass().getTypeName()); } } OutputAuditoryCues.allAuditoryCues = java.lang.Object[] |
|
||
|