• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!