new line in JLabel

I have a long string that contains couple of words, say 10 words. After every 3rd word i want to insert "\n" newline so that next string gets displayed in next line. Now if i display this final string in JLabel i expected there would be three lines displayed in Jlabel. But that doesnt
[298 byte] By [ysrpa] at [2007-11-27 8:57:13]
# 1
have you tried to use HTML? That just might work for you.
petes1234a at 2007-7-12 21:21:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
> have you tried to use HTML? That just might work for> you.Oh thanks for the hint. I searched that in google and got this link. Thanks for the tips. http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JLabel.html
ysrpa at 2007-7-12 21:21:23 > top of Java-index,Desktop,Core GUI APIs...
# 3
> I searched that in google and got this link.Its also explained in the Swing tutorial on "How to Use HTML in Swing Components": http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
camickra at 2007-7-12 21:21:23 > top of Java-index,Desktop,Core GUI APIs...
# 4
If using HTML isn't an option, you can also create your own multiline label class by extending JTextArea (obviously, you'll want to make it uneditable, unfocusable, etc).
mbmerrilla at 2007-7-12 21:21:23 > top of Java-index,Desktop,Core GUI APIs...