title: JLabel vertical alignment not working as expected
body: <pre><code>Font font = Font("Arial", Font.BOLD, 35);
  
  JLabel label = new JLabel("57");
  JPanel panel = new JPanel();
  panel.setLayout(new BoxLayout(panel, BoxLayout.LINE_AXIS));
  panel.add(label);
  </code></pre>
  
  <p>This creates a JLabel with an extra space above and below it. I tried <code>setVerticalAlignment(SwingConstants.TOP)</code> but it not working. Again, I don't want to align JLabel to top but the text inside JLabel should be aligned to top.</p>
  
  <p>here is how my label looks like
  <img src="https://i.stack.imgur.com/aSe8i.png" alt="enter image description here"></p>