jlabel multiline text

JLabel Example Multiline Text Java Swing

One of the important features of JLabel is it can be displayed as multiple lines of text with bullets, a very contrast of AWT Label which gives only one line of text. We use HTML here. Following code on JLabel Example explains.

Output screen on JLabel Example lab4.setBorder(BorderFactory.createTitledBorder(“Multi-Line HTML”));…