Skip to main content

TextArea Question

1 reply [Last post]
bardubitzki
Offline
Joined: 2003-11-02
Points: 0

Hi again,

is it possible to display text in a TextArea so that each row has the same width, like using 'justify' in CSS? If not, will this be considered for the future?

Thanks,
Stephan

Reply viewing options

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

Hi Stephan,
there is no way to justify the text in the text area and this
probably won't be in a future revision. Text parsing is already VERY
slow for even relatively short areas and adding features there will
make it REALLY slow... The main problem here is the native device
fonts which are required for i18n in text areas and are just
remarkably slow, we will need charWidths() to be of very fast
performance to support something like that and the calculations for
this sort of feature would be rather complex.
You should probably be able to do it when we release the source code
and it might be useful for some others in the incubator but I doubt
we will add it to the general text area component.

Thanks.

> Hi again,
>
> is it possible to display text in a TextArea so that each row has
> the same width, like using 'justify' in CSS? If not, will this be
> considered for the future?
>
> Thanks,
> Stephan
> [Message sent by forum member 'bardubitzki' (bardubitzki)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290245
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

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

[att1.html]