将GUI字体设置为宋体- -
转自:http://sunkingxie.blogchina.com/blog/article_84486.351311.html
将GUI中全部字体设为宋体
Font font = new Font("宋体", Font.PLAIN, 12);
Enumeration keys = UIManager.getLookAndFeelDefaults().keys();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
if (UIManager.get(key) instanceof Font) {
UIManager.put(key, font);
}
}