Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to make a working line break in a JLabel?

843806Jan 13 2009 — edited Jan 13 2009
I need to create a line break in a JLabel (and dynamically, too, not static when the label is created, but via JLabel.setText(String). ). I have tried the standard \n escape sequence, and even \r, to no avail. Is it even possible to do what I want to do?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2009
Added on Jan 13 2009
7 comments
491 views