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]

# 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).