I have a TextArea
in LWUIT that I am having an issue manipulating. I have the following two issues:
Even though I call
setIsScrollVisible(true)
, I do not seem to have a scrollbar and cannot scroll when the output goes below the visible area of the container.How do I tell the
TextArea
to automatically scroll to the bottom programmatically?
My code for initializing the TextArea looks like this:
myTextArea = new TextArea(20, Display.getInstance().getDisplayWidth());
myTextArea.setEditable(false);
myTextArea.setEnabled(true);
myTextArea.setIsScrollVisible(true);
myTextArea.setGrowByContent(false);
System.out.println(myTextArea.isScrollableY());
isScrollableY()
returns true. Any ideas? Is there something I am missing? There doesn't seem to be anything visible in the API that lets me explicitly enable or disable scrolling. Thanks in advance for any assistance on this.