-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I have a used a textbox in a ZUL file, but I am populating data in this textbox in the java code where I read a Text file and write data from the file to the textbox.
Bow problem is, even if file data exceed the row limit I have provided for the textbox textbox do not provide scrollbar to view complete data.
If I make this textbox editable and add some data manually in it, it will show scroll bar after row limit exceeds.
Now, can anyone tell me how I get scrollbar without editing textbox manually for the static file data I have inserted using java code.
Thanks, Sagar
Hi Sagar,
Try this in your java code...
textbox.setMultiline("true");
textbox.setRows(8); // change number as per your need
textbox.setStyle("overflow:auto");
Greetings..
M Varun.
Asked: 2014-02-27 11:18:36 +0800
Seen: 12 times
Last updated: Feb 28 '14