public void positionCaret (int pos)

Positions the caret to the position indicated by pos. This function will also clear the selection.

Parameters:
pos    the position