Skip to main content

Wrapped TExt

3 replies [Last post]
vilastalewale
Offline
Joined: 2007-02-22
Points: 0

Hi,
All
Can u please tell me how to wrap text in lwuit.
I had gone through all the lwuit forums.
But as one of suggest use TextArea and use setBorderPainted(false);
But setBorderPaintes is a n deprecated area so no use.
Is ther any solution how to wrap a text on form.

As in j2me TextBox it works
wht abt lwuit.
Pls let me know if any one knows

Thanks & Regards
Vilas Talewale

Reply viewing options

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

Hi,
the deprecation comment directs you to getStyle().setBorder(null);

I didn't understand the second question.
> Hi,
> All
> Can u please tell me how to wrap text in lwuit.
> I had gone through all the lwuit forums.
> But as one of suggest use TextArea and use setBorderPainted(false);
> But setBorderPaintes is a n deprecated area so no use.
> Is ther any solution how to wrap a text on form.
>
> As in j2me TextBox it works
> wht abt lwuit.
> Pls let me know if any one knows
>
> Thanks & Regards
> Vilas Talewale
> [Message sent by forum member 'vilastalewale' (vilastalewale)]
>
> http://forums.java.net/jive/thread.jspa?messageID=341607
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

juliofabio
Offline
Joined: 2009-02-10
Points: 0

Do your Wrapped text means breaking text in multiple lines ?

If so: try to use myTextAreaObj.setRows(2); myTextAreaObj.setGrowByContent(true);

Message was edited by: juliofabio

maoxuchu
Offline
Joined: 2009-03-12
Points: 0

though setBorderPainted(false) is deprecated, but you can use textarea.getStyle().setBorder(null) instead