I need to remove all the rows in my JTable.
I have tried both of the following:
/** * Removes all the rows in the table */ public void clearTable()
Or if you have lots of rows but very few columns...
DefaultTableModel dtm = new DefaultTableModel(); for(int i=0;i
...replaces the old DTM with a fresh one.