JLabel with more than one row
| To make a JLabel contain more than one row of text, use HTML to add the text with a new line (br-tag) between the text items. |
JLabel label = new JLabel(); ... label.setText("<html>First row<br>Second row</html>"); |
Search for code examples on this site
