title: Java GridBagLayout components positioning
body: <p>I'm trying to make a simple layout where the labels are next to the buttons and close.
  Here is the order I am adding them:</p>
  
  <pre><code>add(label_1, cons);
  
  cons.gridx = 1;
  add(textArea,cons);
  
  cons.gridx = 0;
  cons.gridy = 2;
  add(button_1,cons);
  
  cons.gridx= 0;
  cons.gridy = 4;
  add(button_2,cons);
  
  cons.gridx=0;
  cons.gridy=6;
  add(button_3,cons);
  
  cons.gridx = 1;
  cons.gridy = 2;
  add(label_2, cons);       
  
  cons.gridy=4;
  add(label_3,cons);
  
  cons.gridy=6;
  add(label_4,cons);
  </code></pre>
  
  <p>Which looks like this: </p>
  
  <p><img src="https://i.stack.imgur.com/AQ0OI.png" alt="enter image description here"></p>
  
  <p>I just need the labels positioned closer to the buttons, but it seems the closest x value I can give them is 1, it seems relatively positioned - is there a way I could absolutely position them?</p>