title: How to align JLabel next to a JTextField in a GridBagLayout
body: <p>My form is very simple I just want to have labels next to text fields. The labels are default centering and it makes the form look weird. I want to the labels exactly next to the textfield. I have played with the horizontal alignment of the labels and textfields but it did not change anything. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>JPanel root = new JPanel(new GridBagLayout());
                   GridBagConstraints gbc = new GridBagConstraints();
                   gbc.insets= new Insets(0,0,0,0);
  
                   newVehicleRecord.setLayout(new BorderLayout());
                   newVehicleRecord.add(root,BorderLayout.PAGE_START);
  
  
                   JLabel title = new JLabel("New Vehicle Record - Customer ID:" + customerIDInfo.getText());
                   title.setFont(fontTitle);
                   gbc.weightx = 0;
                   gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth= 2;
  
                   root.add(title,gbc);
  
                   gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth= 1;
                   root.add(Box.createVerticalStrut(15),gbc);
  
  
                   gbc.gridx = 0; gbc.gridy = 2;
                   JLabel classificationLabel = new JLabel("Classification:");
                   classificationLabel.setHorizontalAlignment(JLabel.RIGHT);
                   root.add(classificationLabel,gbc);
  
                   gbc.gridx = 1; gbc.gridy = 2;
                   JTextField classificationTextField = new JTextField(10);
                   classificationTextField.setHorizontalAlignment(JTextField.LEFT);
                   root.add(classificationTextField,gbc);
  
                   gbc.gridx = 0; gbc.gridy = 3;
                    JLabel modelLabel = new JLabel("Model:");
                   root.add(modelLabel,gbc);
  
                   gbc.gridx = 1; gbc.gridy = 3;
                   JTextField modelTextField = new JTextField(10);
                   root.add(modelTextField,gbc);
  
                   gbc.gridx = 0; gbc.gridy = 4;
                    JLabel makeLabel = new JLabel("Make:");
                   root.add(makeLabel,gbc);
  
                   gbc.gridx = 1; gbc.gridy = 4;
                   JTextField makeTextField = new JTextField(10);
                   root.add(makeTextField,gbc);
  </code></pre>
  
  <p>I get the following display: <a href="http://prntscr.com/6j3iki" rel="nofollow">http://prntscr.com/6j3iki</a></p>
  
  <p>As you can see there is a lot of empty space between the label and the textfield which I don't want.</p>