code: public JDialog createDialog(Component c, String title, boolean modal,
          ActionListener okListener, ActionListener cancelListener) {
  
          return new FontChooserDialog(c, title, modal, this,
                  okListener, cancelListener);
      }
docs: Creates and returns a new dialog containing the specified
  <code>ColorChooser</code> pane along with "OK", "Cancel", and "Reset"
  buttons. If the "OK" or "Cancel" buttons are pressed, the dialog is
  automatically hidden (but not disposed).  If the "Reset"
  button is pressed, the color-chooser's color will be reset to the
  font which was set the last time <code>show</code> was invoked on the
  dialog and the dialog will remain showing.
  
  @param c              the parent component for the dialog
  @param title          the title for the dialog
  @param modal          a boolean. When true, the remainder of the program
  is inactive until the dialog is closed.
  @param okListener     the ActionListener invoked when "OK" is pressed
  @param cancelListener the ActionListener invoked when "Cancel" is pressed
  @return a new dialog containing the font-chooser pane
  @exception HeadlessException if GraphicsEnvironment.isHeadless()
  returns true.
  @see java.awt.GraphicsEnvironment#isHeadless