传进去sql语句
jfreechart去执行这条sql得到结果,然后画图
如果结果集中的某一列的数值是相同,就抛出异常
java.lang.IndexOutOfBoundsException:
我觉得结果集中的某一列的数值是相同的,那画出的应该是一条直线
为什么回有异常呢?谢谢

解决方案 »

  1.   

    你当前的异常信息是:java.lang.IndexOutOfBoundsException
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
    应该在这里寻找问题
    关于jfreechart的具体使用我曾经写过一篇文章,你可以看看:
    http://blog.csdn.net/mr_it/archive/2005/12/04/543279.aspx