private void paintPreviewArea(boolean repaint) {
    if (m_prevArea != null) {
      Object sizeSelection = m_sizeBox.getSelectedItem();
      Object familySelection = m_fontList.getSelectedValue();
      
      int size = Integer.parseInt(sizeSelection.toString());
      String family = familySelection.toString();
      int style = m_plainBox.isSelected() ? Font.PLAIN :
        ((m_boldBox.isSelected() ? Font.BOLD : 0) +
         (m_italicBox.isSelected() ? Font.ITALIC : 0));
      Font newFont = new Font(family, style, size);
      m_prevArea.setFont(newFont);

      if (repaint) {
        pack();
      }
    }
  }