title: How can I make my columns different sizes using GridLayout in swing?
body: <p>I'm using a GridLayout and my code is as follows:</p>
  
  <pre><code>int changingVar = 1;
  
  JPanel panel = new JPanel(new GridLayout(changingVar, 2));
  panel.add(new JButton("BUTTON1"));
  panel.add(new JButton("BUTTON2"));
  </code></pre>
  
  <p>This looks like:</p>
  
  <pre><code>___________________________________________
  | [      BUTTON1     ] [     BUTTON2     ] |
  ___________________________________________
  </code></pre>
  
  <p>which is two evenly sized columns.  I would like to make it like this:</p>
  
  <pre><code>___________________________________________
  | [          BUTTON1         ] [ BUTTON2 ] |
  ___________________________________________
  </code></pre>
  
  <p>in which one column takes up more of the panel space then the other.  How do I do this with gridlayout?  I am not oppose to using another layout as long as I can have a varying amount of rows and columns that are two different sizes. </p>
  
  <p>Thanks</p>