/** 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);
  }