Return to Snippet

Revision: 48518
at July 4, 2011 12:29 by wnasich


Initial Code
JLabel myLabel;  
String myString =   
    "<html><p>This is a long paragraph and I want it to break on its own.  " +   
    "This is a long paragraph and I want it to break on its own.  " +  
    "This is a long paragraph and I want it to break on its own.  " +  
    "This is a long paragraph and I want it to break on its own.</p></html>";  
myLabel = new JLabel(myString);

Initial URL
http://www.coderanch.com/t/336273/GUI/java/Make-JLabel-automatically-wrap-next

Initial Description


Initial Title
How To Make JLabel automatically wrap to next line

Initial Tags
text

Initial Language
Java