Hi,

Use HTML on the Label of the Button:

button.setText("<HTML><BODY>Button-text-here</BODY></HTML>");

HTH

Cheers,

Marijn



----- Original Message -----
From: "GS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 2:08 PM
Subject: How to get line-wrapping/multiline for JButton(String)?


: Hello,
: I happened to see the following question.Since we have the same problem we
: would like to know the solution for it.Could you please help me?
: regards,
: Gs
: Quote:
: How to get line-wrapping/multiline for JButton(String)?
:
: ----------------------------------------------------------------------------
: ----
: To [EMAIL PROTECTED]
: >From "Srinivasu Mandava" <[EMAIL PROTECTED]>
: Date Thu, 9 Jul 1998 18:05:00 -0400
:
: ----------------------------------------------------------------------------
: ----
:
:      How can I get JButton to print it's text on more than one line?
:
:      Thanks in advance.
:
:      Srinivasu Mandava
:      [EMAIL PROTECTED]
: UnQuote:
:
: _______________________________________________
: 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