 <p>You can give an alignment suggestion to the layout manager by using:</p> <pre><code>label.setAlignmentY(JLabel.CENTER_ALIGNMENT); </code></pre> <p>If this doesn't help then post a proper <a href="http://www.sscce.org/" rel="nofollow">SSCCE</a> that demonstrates the problem.</p>