This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to wrap text in JLabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to wrap text in JLabel" Watch "How to wrap text in JLabel" New topic
Author

How to wrap text in JLabel

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
How to wrap text in JLabel?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
if you know where the wrap is, use html

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
This is not a webapp. Its a desktop application. not to be view on a browser. will html tags work <>
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

If you look carefully, you will see that it's a Swing example and not a web example. As for "will it work", what happened when you tried it?
 
jQuery in Action, 2nd edition
 
subject: How to wrap text in JLabel
 
Similar Threads
Resize width only?
JLabel centered in a JPanel
How To Make JLabel automatically wrap to next line
JTable doubt
text wrap in combo box.