Vertically centering text in HTML table cell in Java JLabel May 18, 2023 by Tarik Support for HTML in Swing Components is limited to 3.2, but valign="middle" should work.