private void clearTable() {
        int numRows = tableModel.getRowCount();
        while (numRows > 0) {
            tableModel.removeRow(numRows - 1);
            numRows--;
        }
        rowNumber = 0;
    }