Posted on 1998-12-01
I am displaying a sql query in a JTable. My gui has two buttons: one to clear the table and the other to select which query the user wants to run. (I am using combo boxes to allow the choice. I am using the following loop to clear the table:
int numRows = sdfTableModel.getRowCount();
for(int i = numRows-1; i>=0; i--)
The problem is I have two seperate tables. The first table works fine, the second table is funky. When you push the clear button the textfields will clear(I added that in to see if it was reaching the method) but the table wont clear..Unless you switch to another screan and then go back, the table is clear. Or if you move the scrollbar the table clears what is not visible. Please help. Any Ideas??????