Sorry for the newbies question. Tried google it, but as u see I failed in finding the answer.
How do I scan TextArea and load each new line into arraylist and later output array into different TextArea? Thank You.
Printable View
Sorry for the newbies question. Tried google it, but as u see I failed in finding the answer.
How do I scan TextArea and load each new line into arraylist and later output array into different TextArea? Thank You.
getAccessibleText() or getAccessibleEditableText() methods of the AccessibleContext object returned by the TextArea's getAccessibleContext() method
Thank you. Does it put the hold textArea into array[1] or does put each new line into different location of the array?
use the AccessibleText's getTextRange( start, end ) method to get a String which you can add to your array/ArrayList/other container
is AccessibleText's getTextRange( start, end ) only in javac 1.6? I can't find it with ver 1.5 I have. I'm noob to this still.
Looks like the getTextRange() is for the AccessibleEditableText, while the AccessibleText implementing classes expose getSelectedText() and getAfterIndex() methods