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()
Well, setNumRows(0) should work, although if you actually read the API it tells you that this method is obsolete and tell you which method to use instead.
If the code doesn't work, then you are doing something else wrong and we can't tell from the posted code what that might be.
Post your SSCCE that demonstrates the problem.