title: JLabel automatically centers it self inside GridBagLayout
body: <p>I'm trying to make a custom <code>JTextField</code> that hosts a <code>JLabel</code>, So I have wrapped the <code>JTextField</code> and the <code>JLabel</code> in a custom Class that extends <code>JPanel</code></p>
  
  <p>The <code>JPanel</code> layout is set to GridBagLayout since I only need place 2 components vertically. Here is how it looks like</p>
  
  <p><a href="https://i.stack.imgur.com/cLUMZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cLUMZ.png" alt="enter image description here"></a></p>
  
  <p>This is the code, I can't spot where I have instructed the GridBagLayout to center the JLabel.</p>
  
  <pre><code>setLayout(new GridBagLayout());
  jLabel = new JLabel();
  GridBagConstraints gbc = new GridBagConstraints();
  gbc.fill = GridBagConstraints.VERTICAL;
  gbc.gridy = 1;
  add(jLabel, gbc);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DYoxX.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DYoxX.gif" alt="enter image description here"></a></p>
  
  <p>I want to have the JLabel the same position at shown in the GIF. How can I achieve this? Would also be nice if anyone can point what the exact text size would look good on the JLabel.</p>