Sunday, July 14, 2002 12:09 AM
I have created a custom table model that extends DefaultTableModel.
When I add columns to my JTable, every thing is OK. I create each column and add it to the table using the addColumn command. The problem happens when I try to add rows of data to the table. It seems as if the columns I add are not registered with the table model, so when I use- model.addRow, I get NullPointer Exception. How can I solve this problem.