请问swing高手JFrame的字体问题? System.setProperty("swing.plaf.metal.controlFont","宋体"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Font font=new Font("宋体",Font.PLAIN,13);UIManager.put("Button.font",font);try { UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); //SwingUtilities.updateComponentTreeUI(this); //System.out.println("the fonts has seted"); } catch(Exception e) { e.printStackTrace(); } java和c++里面的方法或者函数加static会怎么样? OutOfMemoryError 错误 求救,如何在java下现锁屏功能? 有趣的代码! 求网页中实现最大化,最小化,恢复等功能? 关于文件流的读写 如何在多边行内画网格 java面试 请问worker class 和 application class有什么区别? 小程序访问数据库在IE下运行为何没有效果? 为什么浏览器会自动关闭? 如何叫rose中类转成java代码???我的怎么也不行?为什么?我用的rose2002 enterprise endition!
UIManager.put("Button.font",font);
try
{
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
//SwingUtilities.updateComponentTreeUI(this);
//System.out.println("the fonts has seted");
}
catch(Exception e) {
e.printStackTrace();
}