void (AnActionButton anActionButton) { final TableCellEditor cellEditor = table.getCellEditor(); if (cellEditor != null) { cellEditor.stopCellEditing(); } final TableModel model = table.getModel(); ((EditableModel)model).addRow(); TableUtil.editCellAt(table, model.getRowCount() - 1, 0); }