public int getCaretPosition() Returns the position of the text insertion caret. The caret position is constrained to be between 0 and the last character of the text, inclusive. If the text or caret have not been set, the default caret position is 0. Returns: the position of the text insertion caret
the position of the text insertion caret