修改你的JRE下的lib目录里的对应字体属性文件,如font.properties.zh等!

解决方案 »

  1.   

    你可以在你的程序里面使用setFont,选择你所需要的字体
    这样你的字体就ok了
      

  2.   

    楼上的说的很正确,要想达到你想要的效果,最好还是用setFont
      

  3.   

    这是我的做法,在main()或init()里加如下代码:
    还有什么地方要设字体,再加语句。Font f=new Font("宋体",Font.PLAIN,12);
    UIManager.put("Label.font",f);
    UIManager.put("ComboBox.font",f);
    UIManager.put("Button.font",f);
    UIManager.put("TabbedPane.font",f);
    UIManager.put("RadioButton.font",f);
    UIManager.put("TitledBorder.font",f);
      

  4.   


    不错 杨 所说极是。但是如何设置JOptionPane.showMessageDialog()的字体呢?可以也用这种方法实现吗?
      

  5.   

    谢谢magus_yang的回答,谢谢大家的参与
      

  6.   

    UIManager.put("Label.font",f);
    设置了对话框上的字体.
    UIManager.put("Button.font",f);
    设置了对话框的按键上的字体.