jTable row count VS model row count
问题 I have a jTable which loads data from a DB query This load produces 32 results, thus 32 rows in the TableModel With myTable.getRowCount() i correctly get 32 Then i create a new empty model and load it into the table After that, if i call myTable.getRowCount() i still get 32 But if i call myModel.getRowCount() i correctly get 0! Why there should be difference between table.getRowCount() and model.getRowCount() if my table is using the model? ... System.out.println(myTable.getRowCount()); // 32