I\'m referring to this Nimbus reference.
I tried to set global Font to be slightly larger:
UIManager.put(\"defaultFont\", new Font(Font.SANS_SERIF,
The nimbus defaults are lazy created so setting 'defaultFont' before the screen is painted, will add the font to the parent defaults, and not to the nimbus defaults.
Workaround: force nimbus to initialize the defaults and set then the defaults:
NimbusLookAndFeel laf = new NimbusLookAndFeel();
UIManager.setLookAndFeel(laf);
laf.getDefaults().put("defaultFont", new Font("Monospaced", Font.BOLD, 12));
Note: this code is more efficient then overriding getDefaults(), as suggested above.