Skip to main content

Scrolling TextArea

7 replies [Last post]
arnodenhond
Offline
Joined: 2004-11-09

hi Shai,

first of all, great work on lwuit! i love it!!

i my question is about scrolling in a textarea.
my application needs to show a really long piece of text on a screen.
no other components need to be on that screen.
when i make a textarea it does not allow me to scroll within the component.
allowing the form to scroll helps a bit because then atleast i can see the end of the text area.
but as my text is occupies more than 2 full screens there is no way to see the text between the first and last page!

any advice please?
thanks!

Arno.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
arnodenhond
Offline
Joined: 2004-11-09

thanks for that.
the textarea looks much better in border layout.
turns out the textarea refuses to scroll when [b]smoothscrolling[/b] is on.
part of the source of my confusion was that a list was scrolling fine in the default layout.
anyway. its working now :)

ffhenkes
Offline
Joined: 2008-09-22

Hi, I have the same issue, but in my form I need other focusable components, such as buttons, but when I do form.setScrollable(false); I can not reach the other components and if I leave the form.setScrollable(true); than I can not navigate in textarea text properly.. any suggestions?

tnks

Shai Almog

Hi,
are you using a layout manager?

> Hi, I have the same issue, but in my form I need other focusable
> components, such as buttons, but when I do form.setScrollable
> (false); I can not reach the other components and if I leave the
> form.setScrollable(true); than I can not navigate in textarea text
> properly.. any suggestions?
>
> tnks
> [Message sent by forum member 'ffhenkes' (ffhenkes)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301554
>
> ---------------------------------------------------------------------
> 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]

ffhenkes
Offline
Joined: 2008-09-22

hmm.. no I don't think so..

Shai Almog

Then you are experiencing a different problem. Please read my
response to him and use border layout as I described.

> hmm.. no I don't think so..
> [Message sent by forum member 'ffhenkes' (ffhenkes)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301565
>
> ---------------------------------------------------------------------
> 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]

ffhenkes
Offline
Joined: 2008-09-22

tnks it's working very well :D

Shai Almog

Hi,
I'm assuming you added it into the default flow layout.
Disable form scrolling, set its layout to border layout and place the
text area in the CENTER. The flow layout doesn't size large
components correctly and is designed for different use cases.

> hi Shai,
>
> first of all, great work on lwuit! i love it!!
>
> i my question is about scrolling in a textarea.
> my application needs to show a really long piece of text on a screen.
> no other components need to be on that screen.
> when i make a textarea it does not allow me to scroll within the
> component.
> allowing the form to scroll helps a bit because then atleast i can
> see the end of the text area.
> but as my text is occupies more than 2 full screens there is no way
> to see the text between the first and last page!
>
> any advice please?
> thanks!
>
> Arno.
> [Message sent by forum member 'arnodenhond' (arnodenhond)]
>
> http://forums.java.net/jive/thread.jspa?messageID=297682
>
> ---------------------------------------------------------------------
> 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]