code: private void updateFontButton(@Nonnull final MindMapPanelConfig config) {
      final String strStyle;
  
      final Font thefont = config.getFont();
  
      if (thefont.isBold()) {
        strStyle = thefont.isItalic() ? "bolditalic" : "bold";
      } else {
        strStyle = thefont.isItalic() ? "italic" : "plain";
      }
  
      this.buttonFont.setText(thefont.getName() + ", " + strStyle + ", " + thefont.getSize());
    }
docs: GEN-LAST:event_slider2ndLevelVertGapStateChanged