Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to insert a line break

0 views
Skip to first unread message

Mike Heisz

unread,
Aug 25, 2000, 3:00:00 AM8/25/00
to
Is there a way to insert a line break in a string? I am trying to update a
label and want to be able to have it use more than one line within the same
label by putting linebreaks in the string. Any help would be greatly
apreciated.

Nebulus

unread,
Aug 25, 2000, 3:00:00 AM8/25/00
to
I believe the adding "\n" to the label text where you want the carriage
return should do it - it works like that for a textarea.

"Mike Heisz" <mhe...@rim.net> wrote in message
news:newscache$hwyuzf$8v8$1...@njord.rim.net...

Greg Faron

unread,
Aug 25, 2000, 3:00:00 AM8/25/00
to
Mike Heisz wrote:
>
> Is there a way to insert a line break in a string? I am trying to update a
> label and want to be able to have it use more than one line within the same
> label by putting linebreaks in the string. Any help would be greatly
> apreciated.

Line break into a String: "\n"
A Multi-Line Label class: see Java in a Nutshell
http://www.oreilly.com/catalog/javanut2/examples/

http://www.oreilly.com/catalog/javanut2/examples/ch10/MultiLineLabel.java

--
-Greg

leo k

unread,
Aug 26, 2000, 3:00:00 AM8/26/00
to
Use HTML line breaks: <br>
0 new messages