Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DefaultTableModel or AbstractTableModel?

843804Apr 7 2005 — edited Apr 7 2005
Hello all!
I also have a problem with JTables.

I want to dynamically add rows to my table. So my tableModel implements DefaultTableModel. But at the same time, I want to have checkboxes on some rows and this happens only if my tableModel implements the AbstractTableModel (right?). If I choose the abstractTableModel, then either my rows are prinded as strings (false/true) or the are not at all visible.

Can anybody help me? How can I have both features?

Thanks in advance,
Stavy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2005
Added on Apr 7 2005
6 comments
304 views