ArrayIndexOutOfBoundsException when creating line chart
Posted: Mon Jun 16, 2008 9:17 pm
Hi,
Thanks for your reply to my previous query. I have a different issue now.
I am getting the below mentioned exception when I tried to add large number of points to a line chart. I have seen a similar query in the forum.
I am also using a dual core machine. Is this because of the machine type or something else ? If the number of points are small then I am able to create a line chart.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 2000
at com.steema.teechart.axis.AxisDraw.addTick(AxisDraw.java:432)
at com.steema.teechart.axis.AxisDraw.drawThisLabel(AxisDraw.java:463)
at com.steema.teechart.axis.AxisDraw.internalDrawLabel(AxisDraw.java:447)
at com.steema.teechart.axis.AxisDraw.doDefaultLabels(AxisDraw.java:623)
at com.steema.teechart.axis.AxisDraw.doNotCustomLabels(AxisDraw.java:687)
at com.steema.teechart.axis.AxisDraw.doCustomLabels(AxisDraw.java:715)
at com.steema.teechart.axis.AxisDraw.draw(AxisDraw.java:1034)
at com.steema.teechart.axis.Axis.draw(Axis.java:2521)
at com.steema.teechart.axis.Axes.draw(Axes.java:410)
at com.steema.teechart.Chart.internalDraw(Chart.java:645)
at com.steema.teechart.Chart.paint(Chart.java:1807)
at com.steema.teechart.TChart.paintComponent(TChart.java:568)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thanks,
Varun
Thanks for your reply to my previous query. I have a different issue now.
I am getting the below mentioned exception when I tried to add large number of points to a line chart. I have seen a similar query in the forum.
I am also using a dual core machine. Is this because of the machine type or something else ? If the number of points are small then I am able to create a line chart.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 2000
at com.steema.teechart.axis.AxisDraw.addTick(AxisDraw.java:432)
at com.steema.teechart.axis.AxisDraw.drawThisLabel(AxisDraw.java:463)
at com.steema.teechart.axis.AxisDraw.internalDrawLabel(AxisDraw.java:447)
at com.steema.teechart.axis.AxisDraw.doDefaultLabels(AxisDraw.java:623)
at com.steema.teechart.axis.AxisDraw.doNotCustomLabels(AxisDraw.java:687)
at com.steema.teechart.axis.AxisDraw.doCustomLabels(AxisDraw.java:715)
at com.steema.teechart.axis.AxisDraw.draw(AxisDraw.java:1034)
at com.steema.teechart.axis.Axis.draw(Axis.java:2521)
at com.steema.teechart.axis.Axes.draw(Axes.java:410)
at com.steema.teechart.Chart.internalDraw(Chart.java:645)
at com.steema.teechart.Chart.paint(Chart.java:1807)
at com.steema.teechart.TChart.paintComponent(TChart.java:568)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thanks,
Varun