标签:
两种方式:
1、
UIManager.put("Button.font", new Font("MS UI Gothic", Font.PLAIN, 24));
UIManager.put("Label.font", new Font("MS UI Gothic", Font.PLAIN, 24));
2、
Component[] comp=this.getComponents();
for(Component cp:comp){
cp.setFont(new Font("MS UI Gothic", Font.PLAIN, 24));
}
标签:
原文地址:http://www.cnblogs.com/dong-blog/p/5826851.html