环境solaris9,sun application server 7
jfreechart生成的TimeSeriesChart,图片中的中文都是乱码
请教有经验的这个问题怎么解决?

解决方案 »

  1.   

    jfreechart是1.03版的
    在网上搜了下有说改系统字体的,但都是linux下的,solaris下怎么改?
    还有说在程序中设置字体的
    PiePlot pieplot = (PiePlot) jfreechart.getPlot();
    pieplot.setLabelFont(new Font("SimSun", 0, 12));
    但我试了下PiePlot pieplot = (PiePlot) jfreechart.getPlot();会报类型转换错误
      

  2.   

    blog 更新:
     think in java 各章后练习答案.....
     http://blog.csdn.net/heimaoxiaozi/