scrOptions.add(panOptions); scrOptions.getVAdjustable().setUnitIncrement(10);
scrOptions = new JScrollPane(panOptions);
    private void init(JFrame frame, GameOptions options) {        this.options = options;        currentFrame = frame;        scrOptions.add(panOptions);        scrOptions.getVAdjustable().setUnitIncrement(10);        texDesc.setEditable(false);        setupButtons();        setupPassword();                        // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        getContentPane().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);        getContentPane().add(scrOptions);        c.weightx = 1.0;        c.weighty = 0.0;        gridbag.setConstraints(texDesc, c);        getContentPane().add(new JScrollPane(texDesc));        gridbag.setConstraints(panPassword, c);        getContentPane().add(panPassword);        gridbag.setConstraints(panButtons, c);        getContentPane().add(panButtons);        addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent e) {                setVisible(false);            }        });        pack();        setSize(getSize().width, Math.max(getSize().height, 400));        setResizable(false);        setLocation(frame.getLocation().x + frame.getSize().width / 2 - getSize().width / 2,                frame.getLocation().y + frame.getSize().height / 2 - getSize().height / 2);    }