Extend a JTextArea, and give it the look and feel of a JLabel:
public void updateUI()
{
super.updateUI();
setLineWrap (true);
setWrapStyleWord (true);
setHighlighter (null);
setEditable (false);
LookAndFeel.installBorder (this, "Label.border");
LookAndFeel.installColorsAndFont (this, "Label.background",
"Label.foreground", "Label.font");
}
----- Original Message -----
From: "Stephen Price" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 4:33 AM
Subject: (no subject)
> Hi, I am writing a JLabel and can't find out how to make the text of the
> label consist of two vertical lines i.e.
>
> instead of the Label "User Response"
> I want the label to look like
> " User
> Response "
>
> Does anyonw nkow how to do this ?? Thanks, Stephen
>
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing
>
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing