Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable row update  RSS feed

 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a table with 5 columns. This table contains atmost 25 rows. I am selecting one or more rows and clicking modify button. I am getting new values for column 1,3 and 5. I want to update this value in the table for selected rows.
can anyone give me a pointer?

bye for now
sat
 
Saket Barve
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satish, you'll want to take a look at the setValueAt() and isCellEditable() methods provided by the TableModel interface.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saket,

Thanks for your reply. I did it.

bye for now
sat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!