This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Dynamically adding columns and rows to JTable using AbstractTableModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Dynamically adding columns and rows to JTable using AbstractTableModel" Watch "Dynamically adding columns and rows to JTable using AbstractTableModel" New topic
Author

Dynamically adding columns and rows to JTable using AbstractTableModel

Elizabeth Luckose
Ranch Hand

Joined: Aug 17, 2001
Posts: 32
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

Joined: May 17, 2001
Posts: 2823
DefaultTableModel has methods for adding columns and rows. Otherwise you need to write them yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically adding columns and rows to JTable using AbstractTableModel
 
Similar Threads
refreshing a JTable
JTable cell uneditable
JTable(!!!)
JTable
JTable