toFront();
    private void init() {        this.setTitle("Select Display Settings");                //The panels...        JPanel mainPanel = new JPanel();        JPanel centerPanel = new JPanel();        JPanel optionsPanel = new JPanel();        JPanel buttonPanel = new JPanel();        //The buttons...          JButton ok = new JButton("Ok");        JButton cancel = new JButton("Cancel");                mainPanel.setLayout(new BorderLayout());        centerPanel.setLayout(new BorderLayout());        centerPanel.add(            new JLabel(new ImageIcon(imageFile)),            BorderLayout.NORTH);        displayCombo = setUpChooser();        optionsPanel.add(displayCombo);        fullscreenBox = new JCheckBox("Fullscreen?");        fullscreenBox.setSelected(source.getFullscreen());        optionsPanel.add(fullscreenBox);        centerPanel.add(optionsPanel, BorderLayout.SOUTH);        //Set the button action listeners. Cancel disposes without saving,        //ok saves.        ok.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                saveCurrentSelection();                dispose();                done = true;            }        });        cancel.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                dispose();                System.exit(0);            }        });        buttonPanel.add(ok);        buttonPanel.add(cancel);        mainPanel.add(centerPanel, BorderLayout.CENTER);        mainPanel.add(buttonPanel, BorderLayout.SOUTH);        this.getContentPane().add(mainPanel);        pack();        int x, y;        x =            (Toolkit.getDefaultToolkit().getScreenSize().width                - this.getWidth())                / 2;        y =            (Toolkit.getDefaultToolkit().getScreenSize().height                - this.getHeight())                / 2;        this.setLocation(x, y);        show();    }