Posted By:
sanjay_pai
Posted On:
Wednesday, August 1, 2001 05:26 AM
Use the following method of TextArea class for selecting & highlighting the text in the textarea.
public void select(int selectionStart,
int selectionEnd);
For getting the selectionStart, use indexOf(String str, int fromIndex) of the String class, but before that, assign the TextArea's data to a String variable.
And repeatedly changing the fromIndex, selectionStart & selectionEnd, you can manipulate.
Hope this solves your problem.
Sanjay