Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Wrapping

Status
Not open for further replies.

owls

Instructor
Oct 10, 2002
23
0
0
US
When you create a jlabel object in a panel, how can you set the text to wrap over multiple lines so that it is all visible. My text goes beyond the width of the border of the label and is not visible.
 
Hi,

Try using a textpane instead.

You need to fiddle with the text selection colors and change editable to false.

But hey it works.

Regards,
AB.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top