List of utility methods to do Swing Font Set
void | setWholeFont(Font f) set Whole Font FontUIResource fontUIResource = new FontUIResource(f); UIDefaults defaultTable = UIManager.getLookAndFeelDefaults(); Set<Object> set = defaultTable.keySet(); Iterator<Object> it = set.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof String) { String s = (String) o; ... |
void | trySetBorderFont(Font font, Component component) try Set Border Font if (component instanceof JComponent) { JComponent jc = (JComponent) component; if (jc.getBorder() instanceof TitledBorder) { TitledBorder titledBorder = (TitledBorder) jc.getBorder(); titledBorder.setTitleFont(font); |