I'm not a "Swing" guy so I'm struggling with something that should be very basic and easy. I am creating a JTable using a DefaultTableModel and a DefaultTableColumnModel that I build myself (contains 14 columns). I don't feel like I should need to create a custom TableModel implementation - I just want a very basic table that will store results from a db query.
The code snippets are this:
Right after I do the addRow() (which works) and it attempts to repaint the table, i get this exception:
I'm sure this is something stupid and basic but I can't figure it out. The API seems confusing because there seems to be a dozen ways of configuring the table's columns.
Any help is appreciated. Thanks
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"