Apache Pivot TextArea / TextInput caret position

114 Views Asked by At

I am not able to find, how can I get caret position of Apache Pivot TextArea and TextInput.

Also I need to add a caret listener or something like that to them.

The last thing I need to know is how to get caret position of these components by the point, where I clicked by mouse?

Is there any solution?

Thanks

1

There are 1 best solutions below

0
user3334332 On BEST ANSWER

I think I finally found the solution. Method getSelectionStart() on TextArea does return also caret position in situation when nothing is selected.