JButton ok = new JButton("OK");
    private void init(){        remote = PropertiesManager.getOptionsManager().getRemoteSettings();        remotePanel = new ODConnectionPanel(remote, true);        setTitle("appleJuice Client");        getContentPane().setLayout(new BorderLayout());        LanguageSelector languageSelector = LanguageSelector.getInstance();        String nachricht = ZeichenErsetzer.korrigiereUmlaute(languageSelector.              getFirstAttrbuteByTagName(new String[] {"javagui", "startup",                                        "ueberpruefeEinst"}));        JPanel panel2 = new JPanel(new GridBagLayout());        GridBagConstraints constraints = new GridBagConstraints();        constraints.anchor = GridBagConstraints.NORTH;        constraints.fill = GridBagConstraints.BOTH;        constraints.gridx = 0;        constraints.gridy = 0;        constraints.insets.top = 5;        constraints.insets.left = 5;        constraints.insets.bottom = 5;        panel2.add(new JLabel(nachricht), constraints);        constraints.gridx = 1;        constraints.weightx = 1;        constraints.insets.right = 5;        panel2.add(new JLabel("           "), constraints);        getContentPane().add(panel2, BorderLayout.NORTH);        getContentPane().add(remotePanel, BorderLayout.CENTER);        JPanel panel1 = new JPanel(new FlowLayout(FlowLayout.RIGHT));        JButton ok = new JButton("OK");        panel1.add(ok);        JButton abbrechen = new JButton("Abbrechen");        panel1.add(abbrechen);        getContentPane().add(panel1, BorderLayout.SOUTH);        ok.addActionListener(new ActionListener(){            public void actionPerformed(ActionEvent ae){                try {                    speichereEinstellungen();                    result = 0;                    hide();                } catch (InvalidPasswordException e) {                    zeigeFehlerNachricht();                }            }        });        abbrechen.addActionListener(new ActionListener(){            public void actionPerformed(ActionEvent ae){                result = ABGEBROCHEN;                hide();            }        });		addWindowListener(			new WindowAdapter() {		  public void windowClosing(WindowEvent evt) {            result = ABGEBROCHEN;			hide();		  }    	});        pack();        Dimension appDimension = getSize();        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();        setLocation( (screenSize.width - appDimension.width) / 2,                           (screenSize.height - appDimension.height) / 2);    }