JAVA应用程序字体设置...(100分)

  • 主题发起人 wangyufan
  • 开始时间
W

wangyufan

Unregistered / Unconfirmed
GUEST, unregistred user!
如何设置应用程序的缺省字体?
this.setFont(new Font("宋体", 0, 12));不能改变它拥有的组件字体
有没有一种简单方法可以改变所有组件的字体?
 
我也想知道,为什么我打开字体时没有宋体可以选择呢?
 
用getComponent,然后。。。
for(int i=0;i++;i<this.getComponentCount()){
this.getComponent(i).setFont(...)
}
注意:this必须为Container
 
顶部