JPanel (final JBTable table) { return ToolbarDecorator.createDecorator(table) .disableUpAction() .disableDownAction() .setAddAction(new AnActionButtonRunnable() { @Override public void run(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); } }) .createPanel(); }