1

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 like right now.

enter image description here

So for example, the standard deviation for the string screen saver, action->login, login->disclaimer, ok would look like this (I plotted it in excel)

enter image description here

So my question is #1 is this possible and #2 if so then how?

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
user2007843
  • 609
  • 1
  • 12
  • 30

1 Answers1

3

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.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045