title: GridBagLayout doesn't fill all the space
body: <p>I have a panel which is used as a part of card layout. The panel uses <code>GridBagLayout</code>. I add two components to it: <code>JTextArea</code> with fill set to BOTH and <code>JTextField</code> with fill set to horizontal. They are only taking up the horizontal space.</p>
  
  <pre><code>        // Chat card setup
          JPanel chatCard = new JPanel(new GridBagLayout());
          gc = new GridBagConstraints();
  
          gc.gridx = 0;
          gc.gridy = 0;
          gc.fill = GridBagConstraints.BOTH;
          gc.weightx = 2;
          chatArea = new JTextArea();
          chatCard.add(chatArea,gc);
  
          gc.gridx = 0;
          gc.gridy = 1;
          gc.fill = GridBagConstraints.HORIZONTAL;
          gc.anchor = GridBagConstraints.PAGE_END;
          gc.weightx = 2;
          JTextField msgField = new JTextField();
          msgField.setActionCommand("SendText");
          msgField.addActionListener(listener);
          chatCard.add(msgField, gc);
  </code></pre>
  
  <p>It currently looks like this</p>
  
  <p><img src="https://i.stack.imgur.com/OKSqu.png" alt="Panel with GridBagLayout"></p>