title: GridBagLayout formatting in Swing
body: <p><img src="https://i.stack.imgur.com/zI4k9.png" alt="http://i.imgur.com/oxcEAT5.png"></p>
  
  <p>When I add the second row (of buttons), my textArea disappears. </p>
  
  <p><img src="https://i.stack.imgur.com/EBzJt.png" alt="http://i.imgur.com/P9auZqi.png"></p>
  
  <p>Here is the GridBagLayout code:</p>
  
  <pre><code>    public void gridlayout(){
  
      setLayout(new GridBagLayout());
  
      GridBagConstraints grid = new GridBagConstraints();
  
      grid.gridy = 0;
      grid.gridx = 0;
      add(refreshButton, grid);
  
      grid.gridx = 1;
      grid.gridwidth = 4;
      add(textArea, grid);
  
      grid.gridy = 1;
      grid.gridx = 0;
      grid.anchor = GridBagConstraints.LINE_END;
      add(button1, grid);
  
      grid.gridx = 1;
      add(button2, grid);
  
      grid.gridx = 2;
      add(button3,grid);
  
      grid.gridx = 3;
      add(button4,grid);
  
      grid.gridx = 4;
      add(button5,grid);
  
      grid.gridx = 5;
      add(button6,grid);
  
  
  }
  </code></pre>
  
  <p>How do I make it so that the refresh button stays on the left and the textArea appears above the second row and takes up the gridx = 1 &lt;----> gridx =5 space?</p>