Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving JTable Values  RSS feed

Andrew Cero
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use the command getValueAt(i,0) to save all of the values in column 1, rows 1 to i. Those values come out as objects. How can I save them to the format double[] and int[] so that I can save them in an another class?

object date = jtable1a.table.getValueAt(i,0);

data.ext_dates = Double.valueOf(date[i]); // This line obviously doesn't work; im trying to save "date[i] to data.ext_dates which is the type double[]. I also need to do the same thing for int[].

Any help is most appreciated!! thank you!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!