void () { int selected = myImportLayoutTable.getSelectedRow() + 1; if (selected < 0) { selected = myImportLayoutList.getEntryCount(); } PackageEntry entry = new PackageEntry(false, "", true); myImportLayoutList.insertEntryAt(entry, selected); refreshTableModel(selected, myImportLayoutTable); }