Font font = new Font("Tahoma", Font.PLAIN, 11); Enumeration keys = UIManager.getDefaults().keys(); Object key = null; Object value = null; while (keys.hasMoreElements()) { key = keys.nextElement(); value = UIManager.get(key); if (value instanceof javax.swing.plaf.FontUIResource) UIManager.put(key, font); }
1 Comment
Roger Bjärevall
said
over 17 years ago
[This reply is migrated from our old forums.]
Re: application font for the ui
Hi,
We'll fix so that it will be possible to set application font in the next version.
Thanks for your suggestion.
Regards
Roger
anonymous
<AppFontSize>Default</AppFontSize> (%user.home%\.dbvis\config\dbvis.xml)
it's better to use "Application Font" for the ui:
<AppFont>Tahoma-plain-11</AppFont> (for instance)
startup code snippet:
Font font = new Font("Tahoma", Font.PLAIN, 11);
Enumeration keys = UIManager.getDefaults().keys();
Object key = null;
Object value = null;
while (keys.hasMoreElements()) {
key = keys.nextElement();
value = UIManager.get(key);
if (value instanceof javax.swing.plaf.FontUIResource)
UIManager.put(key, font);
}