SetCaretPosition Method (AWTTextComponent)
Class
AWTTextComponent
.
Action
Sets the position of the text insertion caret for this text component.
Syntax
textComponent
.
SetCaretPosition
(
index
)
Variable
Description
index
New position of the text insertion caret. The value is zero-based.
Integer
.
Examples
textComponent.SetCaretPosition
(7)