void () { WriteCommandAction.writeCommandAction(null).run(() -> { if (myEditor.getEditor() != null) { myEditor.getEditor().getDocument().setText(myLastValue.toString()); } }); myEditor.getComponent().repaint(); stopCellEditing(); }