class SwingDialog extends AbstractSwingContainer implements XulDialog, SwingRoot {

  public void show() {

    // we delay instantiation in order to setup a modal relationship.

    if ( dialog == null ) {

      // adding more children in the createDialog step, setting this to false keeps
      // layout from being called again, looping forever
      this.initialized = false;
      createDialog();
      dialog.pack();
      this.initialized = true;
    }

    dialog.setLocationRelativeTo( centerComp );
    dialog.setVisible( true );
  }

  public  SwingDialog( Element self, XulComponent parent, XulDomContainer domContainer, String tagName );

}