/** * Initializes OK/Cancel editor buttons. */ protected void initOkCancelActions() { ((BaseAction) getWindow().getActionNN("save")).withHandler(actionPerformedEvent -> saveChanges()); ((BaseAction) getWindow().getActionNN("cancel")).withHandler(actionPerformedEvent -> discardChanges()); }