This is an extension to this question: [Java gridbaglayout problems](https://stackoverflow.com/questions/16785901/java-gridbaglayout-problems). Panel1 is overlapping panel2 because of the panel1's width overflow. However, if i remove the `gc.gridwidth = 2` it will align panel2 properly, but it will also move the combobox to the its original spot on the right side. I have been playing around with the different gridbaglayout properties but can't get it aligned like i want it to. 

Heres my code:

```
public void createGUI()
{
   main_panel = new JPanel();
   main_panel.setLayout(new GridBagLayout());
   GridBagConstraints gc = new GridBagConstraints();

   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.gridx = 0;
   gc.gridy = 0;
   gc.insets = new Insets(5, 0, 10, 0);
   main_panel.add(label, gc);

   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.gridx = 1;
   gc.gridy = 0;
   gc.insets = new Insets(5, 0, 10, 0);
   main_panel.add(band_combobox, gc);

   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.gridx = 0;
   gc.gridy = 1;
   gc.gridwidth = 2;
   gc.insets = new Insets(0, 0, 10, 0);
   main_panel.add(panel1, gc);

   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.gridx = 1;
   gc.gridy = 1;
   gc.gridwidth = 2;
   gc.insets = new Insets(0, 0, 10, 0);
   main_panel.add(panel2, gc);

   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.gridx = 0;
   gc.gridy = 2;
   gc.gridwidth = 2;
   gc.insets = new Insets(0, 0, 10, 0);
   main_panel.add(panel3, gc);
}

```

![enter image description here](https://i.stack.imgur.com/Rbtl5.png)

I am trying to do something like this:

![enter image description here](https://i.stack.imgur.com/ebFdH.png)