How can I display a new line in JLabel ?
For example, if I wanted to:
Hello World!
blahblahblah
Here is what I have right now:
JLabel l = new JLabel("Hello World!\nblahblahblah", SwingConstants.CENTER);
This is what is displayed:
Hello World! blahblahblah
Forgive me if this is a stupid question, I'm just learning some Swing basics ...
java user-interface formatting swing jlabel
mportiz08 Jul 07 '09 at 2:28 2009-07-07 02:28
source share