void (int selected) { myMigrationMap.removeEntryAt(selected); AbstractTableModel model = (AbstractTableModel)myTable.getModel(); model.fireTableRowsDeleted(selected, selected); if (selected >= myMigrationMap.getEntryCount()) { selected--; } if (selected >= 0) { myTable.setRowSelectionInterval(selected, selected); } }