code: private void buttonFontForEditorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFontForEditorActionPerformed
      final FontSelector fontSelector = new FontSelector(this.fontTextEditor);
      if (DialogProviderManager.getInstance().getDialogProvider().msgOkCancel(this, "Select Text editor font", fontSelector)) {
        this.fontTextEditor = fontSelector.getValue();
        updateFontButton(this.buttonFontForEditor, fontSelector.getValue());
        if (this.changeNotificationAllowed) {
          this.changed = true;
        }
      }
    }
docs: GEN-LAST:event_buttonResetToDefaultActionPerformed