code: public FontChooser setSelectedFontStyle(int style) {
          for (int i = 0; i < FONT_STYLE_CODES.length; i++) {
              if (FONT_STYLE_CODES[i] == style) {
                  getFontStyleList().setSelectedIndex(i);
                  break;
              }
          }
          updateSampleFont();
          return this;
      }
docs: Set the style of the selected font.
  @param style  the size of the selected font.
  <code>Font.PLAIN</code>, <code>Font.BOLD</code>,
  <code>Font.ITALIC</code>, or
  <code>Font.BOLD|Font.ITALIC</code>.
  
  @see java.awt.Font#PLAIN
  @see java.awt.Font#BOLD
  @see java.awt.Font#ITALIC
  @see #getSelectedFontStyle