void (final JTable table, final int rowIndex) { table.setRowSelectionInterval(rowIndex, rowIndex); final int column = getColumnToEditAfterAddition(); if (column >= 0) { table.editCellAt(rowIndex, column); } }