code: private void updateFontButton(@Nonnull final JButton button, @Nonnull final Font font) {
      final String strStyle;
      if (font.isBold()) {
        strStyle = font.isItalic() ? "bolditalic" : "bold"; //NOI18N
      } else {
        strStyle = font.isItalic() ? "italic" : "plain"; //NOI18N
      }
  
      button.setText(font.getName() + ", " + strStyle + ", " + font.getSize()); //NOI18N
    }
docs: GEN-LAST:event_spinnerCollapsatorSizeStateChanged