/** Show the dialog frame. */
  public void showDialog() {
    pack();

    if (dialog.getProperty("weightx") != null) {
      Rectangle bounds = getBounds();

      bounds.width *= ((Double) dialog.getProperty("weightx")).doubleValue();
      setBounds(bounds);
    }

    if (dialog.getProperty("weighty") != null) {
      Rectangle bounds = getBounds();

      bounds.height *= ((Double) dialog.getProperty("weighty")).doubleValue();
      setBounds(bounds);
    }

    setLocationRelativeTo(
        ((SwingDesktopManager) Client.instance().getClientGUI().getDesktopManager()).getJFrame());

    Client.instance().getClientGUI().getDesktopManager().getDesktopFrame().setEnabled(false);
    setVisible(true);

    //		setGlassPane (glassPane);
    //		glassPane.setVisible (true);
  }
 /**
  * Invoked when the user attempts to close the window from the window's system menu.
  *
  * @param event The window event.
  */
 public void windowClosing(WindowEvent event) {
   dialog.close();
 }