|
Do you need help with your Java programming?
Click here for instant help with your Java code. |
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>"); |
| Do you know your Java? | |
| Take a Ten-Question-Java-Quiz! | |
Search for code examples on this site
