code: public static void setContent (JInternalDialog dialog, JPanel content)
      {
          Container holder = dialog.getContentPane();
          holder.removeAll();
          holder.add(content, BorderLayout.CENTER);
          dialog.pack();
      }
docs: Sets the content panel of the supplied internal dialog.