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!

Remove automatic line break from JLabel (html prefix in text)

843806Aug 14 2009 — edited Aug 15 2009
Hi,

Is there a way to disable the automatic line break in a JLabel? Currently I am using the html prefix to be able to use the <br>-tag for deliberate line breaks.

Tim

PS: I want to avoid using multiple JLabels for seperate lines of text (without html prefix)...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2009
Added on Aug 14 2009
4 comments
616 views