code: void setSelectedFont(Font font) {
      this.selectedFont = font;
      fontNameList.setSelectedValue(font.getFamily(), true);
      fontStyleList.setSelectedValue(getStyle(font), true);
      fontSizeList.setSelectedValue(font.getSize(), true);
    }
docs: Sets the current font of the font chooser to the specified font.
  
  @param font the font to be set in the font chooser