title: Cannot resize JTextField and JScrollPane in GridBagLayout
body: <p>I want to reduce the width and height of both the JTextField and JScrollPane in a GridBagLayout, but seems like the width is only reducible to the length of the longest content from the JList, by setting the text field columns. I'm not sure if I need to adjust both or just one of the sizes of the components to match the width.</p>
  
  <p>I've  tried setPreferredSize(), setSize(), and setting the column length on the text field but they don't seem to do anything.</p>
  
  <p><a href="https://i.stack.imgur.com/GhlL5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GhlL5.png" alt="enter image description here"></a></p>
  
  <pre><code>    GridBagConstraints c = new GridBagConstraints();
      c.fill = GridBagConstraints.HORIZONTAL;
      c.gridx = 0;
      c.gridy = 0;
      fontDialog.add(fontLabel, c);
      c.gridx = 1;
      fontDialog.add(styleLabel,c);
      c.gridx = 2;
      fontDialog.add(sizeLabel, c);
      c.gridx = 0;
      c.gridy = 1;
      fontDialog.add(fontTextField, c);
      c.gridx = 1;
      fontDialog.add(styleTextField, c);
      c.gridx = 2;
      fontDialog.add(sizeTextField, c);
      c.gridx = 0;
      c.gridy = 2;
      fontDialog.add(new JScrollPane(fontList), c);
      c.gridx = 1;
      fontDialog.add(new JScrollPane(styleList), c);
      c.gridx = 2;
      fontDialog.add(new JScrollPane(sizeList), c);
      fontDialog.pack();
  </code></pre>