将java转成exe文件的方法- -| 回首页 | 2005年索引 | - -使用dbcp做为数据库连接池

将GUI字体设置为宋体- -

                                      

转自:http://sunkingxie.blogchina.com/blog/article_84486.351311.html

将GUI中全部字体设为宋体


          Font font = new Font("宋体", Font.PLAIN, 12);
          Enumeration keys = UIManager.getLookAndFeelDefaults().keys();
          while (keys.hasMoreElements()) {
             Object key = keys.nextElement();
             if (UIManager.get(key) instanceof Font) {
                UIManager.put(key, font);
              }
          }

- 作者: mahaixing 2005年03月3日, 星期四 15:17 加入博采

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=861798

回复

评论内容: