void () { int selected = myImportLayoutTable.getSelectedRow(); if (selected < 1) { return; } TableUtil.stopEditing(myImportLayoutTable); PackageEntry entry = myImportLayoutList.getEntryAt(selected); PackageEntry previousEntry = myImportLayoutList.getEntryAt(selected - 1); myImportLayoutList.setEntryAt(previousEntry, selected); myImportLayoutList.setEntryAt(entry, selected - 1); AbstractTableModel model = (AbstractTableModel)myImportLayoutTable.getModel(); model.fireTableRowsUpdated(selected - 1, selected); myImportLayoutTable.setRowSelectionInterval(selected - 1, selected - 1); }