>>>>> Wayne  writes:

    Wayne> Hello,
    Wayne> I been trying to give a button two lines to display. How is
    Wayne> this done?  Things I tryed.
    Wayne>   Button mybutton = new Button ( "my\nbutton) ;
    Wayne>   Button mybutton = new Button ( "my" + "\nbutton") ;
    Wayne>   Button mybutton = new Button ( "my\n" + "button") ;

There is no difference between these three lines, javac will produce
exactly the same bytecode for them.

    Wayne>    What I'm looking for is
    Wayne>                                       my
    Wayne>                                      button

This is not possible with java.awt.Button, but it's not hard to write
your own multiline button.


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to