at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:511) . i had put thread.wait function for draw one subplot chart and than other but it's not a solution.it take loading in javafx application.so how to solve it ? i need help. error is:
Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1
at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:511)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1229)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1624)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at sun.swing.JLightweightFrame$3.paint(JLightweightFrame.java:307)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)