How to add multiline labels on the Java GUI?
•
Java
I made a Java Swing GUI Now I want to display a static message on it, but the message is multi line and jlabel is single line
How do I display this message?
Is there any property of jlabel that we can set to display multi line messages?
Do I have to use multiple jlabels for multiple lines?
Is there any other way to display this message?
Solution
How to Use HTML in Swing Components
Displaying Multi Line Text
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码