public JDialog makeDialog( RootPaneContainer parent, String title, boolean modal) {
    this.parent = parent;
    return new Dialog( parent, title, modal);
  }
public JDialog makeDialog( RootPaneContainer parent, String title, boolean modal) {
    this.parent = parent;
    return new Dialog( parent, title, modal);
  }
public JDialog makeDialog ( RootPaneContainer parent , String title , boolean modal ) { this . parent = parent ; return new Dialog ( parent , title , modal ) ; }
Wrap this in a JDialog component.

@param parent      JFrame (application) or JApplet (applet) or null
@param title       dialog window title
@param modal     is modal
Wrap this in a JDialog component .