Skip to main content

word wrap

3 replies [Last post]
Anonymous

Does TextArea support line wrapping? If I place such a control in the
center section of a border layout, is the control still considered to be
single lined? If so, what is the proper way to determine how many lines
should be assigned to the text area.

Currently, a non editable text area that occupies the majority of the screen
when placed in the center of a border layout will only show text on the
first row.

http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
please use the constructor that accepts rows and columns and set rows
to more than 1.

Thanks.

> Does TextArea support line wrapping? If I place such a control in
> the center section of a border layout, is the control still
> considered to be single lined? If so, what is the proper way to
> determine how many lines should be assigned to the text area.
>
> Currently, a non editable text area that occupies the majority of
> the screen when placed in the center of a border layout will only
> show text on the first row.
>
>
> http://www.spectrumdt.com
> http://codepimps.org

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

hmm, but I don't what the value should be. The value should be the maximum
I can do on the screen that I happen to be running on.

On Tue, Jul 22, 2008 at 11:33 PM, Shai Almog wrote:

> Hi,
> please use the constructor that accepts rows and columns and set rows to
> more than 1.
>
> Thanks.
>
> Does TextArea support line wrapping? If I place such a control in the
> center section of a border layout, is the control still considered to be
> single lined? If so, what is the proper way to determine how many lines
> should be assigned to the text area.
>
> Currently, a non editable text area that occupies the majority of the
> screen when placed in the center of a border layout will only show text on
> the first row.
>
>
> http://www.spectrumdt.com
> http://codepimps.org
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Shai Almog

While there is a bug in this for the current drop see the
growsByContent flag, so anything larger than 1 will work.

> hmm, but I don't what the value should be. The value should be the
> maximum I can do on the screen that I happen to be running on.

Shai Almog
http://lwuit.blogspot.com/

[att1.html]