p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS)); p.add(noiseReduction); p.add(histogramButton);
p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.gridy = 0;  p.add(noiseReduction,c); c.gridy = 1; p.add(histogramButton,c);
    private JPanel buildPane()    {        JPanel p = new JPanel();        p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));        p.add(noiseReduction);        p.add(histogramButton);        return p;    }