code: protected void displayInFrame(String title)
      {
          JFrame frame = new JFrame(title);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          configure(frame);
          frame.pack();
          frame.setVisible(true);
      }
docs: Display this example program using a JFrame as the top-level GUI container (rather
  than running the example as an applet).
  @param title The text to use for the frame's title bar.