Hi guys i am having issues trying to disable editing for a table after displaying it. i would have used setEnabled but i still want the table to be clickable because i am displaying and editing the content of it's rows with the help of text fields.

i have searched and got hints that i have to override isCellEditable() or use DefaultTableModel. However, the major problem now is that my table is displayed using rs2xml because i am actually loading contents of a database table into the JTable. here is the segment of my code that displays the table from a result set:

```
         do {
                //get the table...
                attendanceTable.setModel(DbUtils.resultSetToTableModel(
            } while (rs2.next());

```

rs2 is my result set.

i tried using default table model... i tried something like this:

```
          do {                  
             DefaultTableModel myTable = (DefaultTableModel)attendanceTable.getModel();
              myTable.setModel(DbUtils.resultSetToTableModel(rs2));
             } while (rs2.next());

```

but gave me errors because there was no setModel method under defaultTableModel. that was what i understood by using defaultTableModel...

about overriding isCellEditable(), someone that asked a similar question (but without displaying table with rs2xml) mentioned that doing that also made it impossible for his program to edit the table. 

please guys i really need help with this...thanks in advance