Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to update JTable?  RSS feed

 
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
Boost this thread!