在main()方法中,用UIManager.put("Component.font",new Font("宋体",Font.PLAIN,12));

解决方案 »

  1.   

    重载你的void setFont(...)方法
    里面的内容如下:
    Font defaultFont = new Font("somefonttype", 1, 1);
    super.setFont(defaultFont);
    for (int i = 0; i < this.getComponentCount(); i++)
    {
      try
      {
        this.getComponent(i).setFont(defaultFont);
      }
      catch(.....)
      {
      }
    }
    试一下,看看可以不可以
    ===================================================================
    AllForOne.freejacky