Wayne wrote:
>
> Hello,
> I been trying to give a button two lines to display. How is this done?
> Things I tryed. Button mybutton = new Button ( "my\nbutton) ;
> Button mybutton = new Button ( "my" +
> "\nbutton") ;
> Button mybutton = new Button ( "my\n" +
> "button") ;
> What I'm looking for is
> my
> button
> I appreciate any help.
> Wayne
This is not at all Java Linux specific so it should have been
asked on a regular Java newsgroup.
But here are my ideas anyways! I wrote some code to do this a
little while ago and what I did was make a new Image type that
was a multi-line text image. Then you can use this image with
the button and it works correctly. I also noticed in the latest
Swing that a button can hold HTML text now so you can do all
sorts of stuff like font changes, multi-lines, colors, ...
Thats all the ideas I have for now!
--
Brad Pepers
Linux Canada Inc. Home of Linux products in Canada!
http://www.linuxcanada.com Proud supporter of Cyclades, Red
[EMAIL PROTECTED] Hat, and Caldera.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]