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

Dynamically adding columns and rows to JTable using AbstractTableModel  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!