c.gridx++; c.fill = GridBagConstraints.NONE; c.weightx = c.weighty = 0.0; gbl.setConstraints(print_preview, c); add(print_preview);
    public void createLayout() {        GridBagLayout gbl = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gbl);        c.gridx = 0;        c.gridy = 0;        c.weightx = c.weighty = 0.0;        gbl.setConstraints(backward, c);        add(backward);        c.gridx++;        gbl.setConstraints(forward, c);        add(forward);                /* c.gridx++;        gbl.setConstraints(stop, c);        add(stop); */                c.gridx++;        gbl.setConstraints(reload, c);        add(reload);        c.gridx++;        c.fill = GridBagConstraints.HORIZONTAL;        c.weightx = 10.0;        gbl.setConstraints(url, c);        add(url);        c.gridx = 0;        c.gridy++;        c.fill = GridBagConstraints.BOTH;        c.gridwidth = 7;        c.weightx = c.weighty = 10.0;        gbl.setConstraints(scroll, c);        add(scroll);        c.gridx = 0;        c.gridy++;        c.fill = GridBagConstraints.HORIZONTAL;        c.weighty = 0.1;        gbl.setConstraints(status, c);        add(status);    }