• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to retreive a value in a Jtable ?  RSS feed

 
Kristof Camelbeke
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a Jtable with an AbstractTableModel....
I was wondering how to retreive the last element of a particular column of the jTable and display it in a jTextField.
The element I want to retreive are not held in a Vector but are calculated in the AbstractTableModel.
I was thinking of using the GetValueAt() method but I'm not sure if this will work...
Thanks for any input.

Kristof
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getValueAt will work.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!