怎么可以改变整个java应用程序的字体

解决方案 »

  1.   

    里面每个空间的font属性你都修改了就可以了
      

  2.   

     UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel");
            Font font = new Font("宋体", Font.PLAIN, 12);
            Enumeration keys = UIManager.getDefaults().keys();
            while (keys.hasMoreElements()) {
                Object key = keys.nextElement();
                Object value = UIManager.get(key);
                if (value instanceof FontUIResource) {
                    UIManager.put(key, font);
                }
            }