code: public FontChooser setSelectedFontSize(int size) {
          String sizeString = String.valueOf(size);
          for (int i = 0; i < this.fontSizeStrings.length; i++) {
              if (this.fontSizeStrings[i].equals(sizeString)) {
                  getFontSizeList().setSelectedIndex(i);
                  break;
              }
          }
          getFontSizeTextField().setText(sizeString);
          updateSampleFont();
          return this;
      }
docs: Set the size of the selected font.
  @param size the size of the selected font
  
  @see #getSelectedFontSize