Java: Linebreaks in JLabels?

Use HTML in setText, e.g.

myLabel.setText("<html><body>with<br>linebreak</body></html>");

Leave a Comment