Mega Code Archive

 
Categories / Java Tutorial / Swing
 

JLabel with more than one row

JLabel label =  new JLabel(); label.setText("<html>Line 1<br>Line 2</html>");