Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to update JTable?

 
niharika singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Can anyone help me how to update Jtable?
TIA
 
Lora Louise
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To update cells,
AbstractTableModel model = table.getModel();
model.fireTableCellUpdated(row, column);
 
niharika singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lora Louise:
To update cells,
AbstractTableModel model = table.getModel();
model.fireTableCellUpdated(row, column);

thanks for reply
 
Raju, Gentle
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Singh,
Did you implement MVC pattren for the UI. If so how did you implement ? Can you explain a little bit here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic