title: Textfield width doesn't change in GridLayout
body: <p>I'm trying to place textfield right next to a label. Instead of that textfield places under the label and fills one row. I tried to give column like JTextfield(10) but that didnt worked too. Is this about the layout i'm using? </p>
  
  <pre><code>public class guessTheNumber extends JFrame{
  
  private JLabel info, info2, info3;
  private JTextField input;
  
  public guessTheNumber(){
  
      super("Guessing Game");
      setLayout(new GridLayout(6,3));
  
      info = new JLabel("I have a number between 1 and 1000.",SwingConstants.CENTER);
      add(info);
  
      info2 = new JLabel("Can you guess my number?",SwingConstants.CENTER);
      add(info2);
  
      info3 = new JLabel("Please enter your first guess:");
      add(info3);
  
      input = new JTextField("",10);
      add(input);
  
  }
  public static void main(String[] args) {
  
      guessTheNumber gtn = new guessTheNumber();
      gtn.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      gtn.setLocationRelativeTo(null);
      gtn.setSize(500, 200);
      gtn.setVisible(true);
  }
  }
  </code></pre>