Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding JTable  RSS feed

 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to add dynamic data to JTable using DefaultTableModel(not AbstractTableModel) ??
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you start by reading the apidocs for DefaultTableModel.
in the methods() you might even find something starting with add...()
 
Karthick Dharani Vidhya
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we have the value that needs to be set and the position, then just model's setValueAt() will do.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!