void (@NotNull final PropertyEditor source, final boolean continueEditing, final boolean closeEditorOnError) { if(isEditing()){ final Object value; final TableCellEditor tableCellEditor = cellEditor; try { value = tableCellEditor.getCellEditorValue(); } catch (final Exception exc) { showInvalidInput(exc); return; } boolean valueAccepted = myModel.setValueAtRow(editingRow, value); if (valueAccepted) { if (!continueEditing) tableCellEditor.stopCellEditing(); } else { if (closeEditorOnError) tableCellEditor.cancelCellEditing(); } } }