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