Erk.

A better solution (IMO) is to extend JTextArea, and give it the look and
feel of a JLabel. The HTML solution seems kinda hacky to me - different OS's
give different font sizes, etc. I just don't like it that the line break is
hardcoded, and prefer Java to decide for me. The HTML solution also depends
on the window staying the same width, etc.

-----Original Message-----
From: Harkishin Nachnani <[EMAIL PROTECTED]>
To: alex <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, July 05, 2001 08:05
Subject: RE: multi-lined labels?


Use HTML
Example: <html> line one <br> line two </html>

-----Original Message-----
From: alex [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: multi-lined labels?


Is there a way to create a JLabel
with text that breaks across multiple
lines?

Thanks,
-alex

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to