This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving JTable Values

 
Andrew Cero
Greenhorn
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!