/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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>";
URL: http://www.coderanch.com/t/336273/GUI/java/Make-JLabel-automatically-wrap-next