Generating a standard deviation plot from a row in a JTable

前端 未结 1 398
暖寄归人
暖寄归人 2021-01-16 10:01

I am trying to create a JTable that I can be able to click on a row and it will display a standard deviation curve. Here is what my JTable looks li

相关标签:
1条回答
  • 2021-01-16 10:17

    ChartFactory.createHistogram() with an IntervalXYDataset such as HistogramDataset might be a suitable choice. HistogramDemo1, seen among the statistical charts in the JWS demo, is an example. You can determine which row was clicked using a ListSelectionListener, as shown here. You can retrieve the required values from your TableModel using getValueAt(), as shown here.

    0 讨论(0)
提交回复
热议问题