scrollPane.setPreferredSize(MIN_SCROLL);
scrollPane.setPreferredSize(SCROLL_ROI);
    private JPanel buildListPanel()    {        JPanel p = new JPanel();        JLabel label = new JLabel("Select channels ");        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        p.setLayout(gridbag);        c.weightx = 0.5;                c.gridx = 0;        c.gridy = 0;        c.anchor = GridBagConstraints.NORTHWEST;        gridbag.setConstraints(label, c);        p.add(label);        JScrollPane scrollPane = new JScrollPane(listChannels);        scrollPane.setPreferredSize(dimScroll);        c.gridx = 1;        gridbag.setConstraints(scrollPane, c);        p.add(scrollPane);        c.gridy = 1;        Component box = Box.createRigidArea(VBOX);        gridbag.setConstraints(box, c);        p.add(box);        label = new JLabel("Select ROIs ");        c.gridx = 0;        c.gridy = 2;        gridbag.setConstraints(label, c);        p.add(label);        scrollPane = new JScrollPane(listROI);        scrollPane.setPreferredSize(MIN_SCROLL);        c.gridx = 1;        gridbag.setConstraints(scrollPane, c);        p.add(scrollPane);        return UIUtilities.buildComponentPanel(p);    }   