this.options = client.game.getOptions();  scrOptions.add(panOptions);  texDesc.setEditable(false);  setupButtons(); setupPassword();    GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag);  c.insets = new Insets(1, 1, 1, 1); c.weightx = 1.0;    c.weighty = 1.0; c.fill = GridBagConstraints.BOTH; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(scrOptions, c); add(scrOptions);  c.weightx = 1.0;    c.weighty = 0.0; gridbag.setConstraints(texDesc, c); add(texDesc);  gridbag.setConstraints(panPassword, c); add(panPassword);  gridbag.setConstraints(panButtons, c); add(panButtons);  addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false); } });  pack(); setSize(getSize().width, Math.max(getSize().height, 400)); setResizable(false); setLocation(client.frame.getLocation().x + client.frame.getSize().width/2 - getSize().width/2, client.frame.getLocation().y + client.frame.getSize().height/2 - getSize().height/2);
this.init( client.frame, client.game.getOptions() );
    public GameOptionsDialog(Client client) {        super(client.frame, "View/Edit Game Options...", true);        this.client = client;        this.options = client.game.getOptions();                scrOptions.add(panOptions);                texDesc.setEditable(false);                setupButtons();        setupPassword();                        // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gridbag);                    c.insets = new Insets(1, 1, 1, 1);        c.weightx = 1.0;    c.weighty = 1.0;        c.fill = GridBagConstraints.BOTH;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(scrOptions, c);        add(scrOptions);                    c.weightx = 1.0;    c.weighty = 0.0;        gridbag.setConstraints(texDesc, c);        add(texDesc);                gridbag.setConstraints(panPassword, c);        add(panPassword);                gridbag.setConstraints(panButtons, c);        add(panButtons);                addWindowListener(new WindowAdapter() {      public void windowClosing(WindowEvent e) { setVisible(false); }  });                pack();        setSize(getSize().width, Math.max(getSize().height, 400));        setResizable(false);        setLocation(client.frame.getLocation().x + client.frame.getSize().width/2 - getSize().width/2,                    client.frame.getLocation().y + client.frame.getSize().height/2 - getSize().height/2);    }