I'm wondering if there's a swing item that's like a JLabel except that it spans many lines, like a JParagraph. If I write
JLabel L = new JLabel("line 1\nline2");
What gets displayed in the interface is "line 1line 2" (i.e. the '\n' gets trashed). I'd like to know if there's anything that will take the '\n' into account and span several lines.