This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically adding columns and rows to JTable using AbstractTableModel

 
Elizabeth Luckose
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using a table model which is extending an AbstractTableModel
for my JTable. I want to add columns and rows dynamically.
How can I add columns and rows dynamically using this table model?
Please help....
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DefaultTableModel has methods for adding columns and rows. Otherwise you need to write them yourself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic