Article View: borland.public.jbuilder.java.language
Article #15726Re: TextArea Control and Carriage Returns
From: Ricardo Sampaio Lins
Date: Tue, 04 May 1999 00:00
Date: Tue, 04 May 1999 00:00
37 lines
1574 bytes
1574 bytes
I've used this method to insert a new text line to a textarea and it has
worked.
void setInfo(String str){
textAreamain.append("\n" + str);
}
I hope it could help.
Tom Heagy <tom.heagy@sciatl.com> wrote in message
news:370E2264.160BFBEE@sciatl.com...
> Stupid oversight on my part. I tried using "\r" and it didn't work. I
just
> assumed that "\n" for linefeed wouldn't work either. ASSUMPTIONS are
terrible
> things!
>
> Thanks!
>
> -Tom
>
> Gavin wrote:
>
> > What about appending a "\n" before each new string?
> >
> > Tom Heagy wrote:
> >
> > > Is there a way for me to embed a carriage return in a TextArea
Control?
> > > I am trying to append simple strings to a large TextArea control but I
> > > want each entry to start on it's own line within the control. The
> > > "append" function simply attaches each new entry to the end of the
first
> > > line.
> > > -Tom
>
Technical Details
Message-ID:
<7glr5p$62d8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<370E178B.88BB120E@sciatl.com> <370E1F43.5AF95919@apion-tss.com> <370E2264.160BFBEE@sciatl.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ac93ee22f6684972 X-Google-Attributes: gidf74b3,public From: "Ricardo Sampaio Lins" <sampaio@h8.ita.cta.br> Subject: Re: TextArea Control and Carriage Returns Date: 1999/05/04 Message-ID: <7glr5p$62d8@forums.borland.com> X-Deja-AN: 473769782 References: <370E178B.88BB120E@sciatl.com> <370E1F43.5AF95919@apion-tss.com> <370E2264.160BFBEE@sciatl.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: ITA X-MSMail-Priority: Normal Reply-To: "Ricardo Sampaio Lins" <sampaio@h8.ita.cta.br> Newsgroups: borland.public.jbuilder.java.language