public void selectRange (int anchor, int caretPosition)

Positions the anchor and caretPosition explicitly.

Parameters:
anchor    the anchor
caretPosition    the caretPosition