public void removeAllElements() { myTableModel.removeAllElements(); myTable.getSelectionModel().clearSelection(); }