Java Utililty Methods Swing Font Set

List of utility methods to do Swing Font Set

Description

The list of methods to do Swing Font Set are organized into topic(s).

Method

voidsetWholeFont(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;
...
voidtrySetBorderFont(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);