首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

JFreeChar解决中文乱码有关问题

2012-07-08 
JFreeChar解决中文乱码问题// 通用的中文问题解决方案StandardChartTheme theme new StandardChartTheme

JFreeChar解决中文乱码问题

// 通用的中文问题解决方案   StandardChartTheme theme = new StandardChartTheme("unicode") {        public void apply(JFreeChart chart) {            chart.getRenderingHints().put(RenderingHints.KEY_TEXT_ANTIALIASING,                    RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);            super.apply(chart);        }     };     theme.setExtraLargeFont(new Font("宋体", Font.PLAIN, 14));     theme.setLargeFont(new Font("宋体", Font.PLAIN, 14));     theme.setRegularFont(new Font("宋体", Font.PLAIN, 12));     theme.setSmallFont(new Font("宋体", Font.PLAIN, 10));     ChartFactory.setChartTheme(theme); 
?

?

热点排行