SetCaretPosition Method (JTextComponent)

Action

Sets the position of the text insertion caret for this text component.

Syntax

C#
textComponent.SetCaretPosition(index)
VB
textComponent.SetCaretPosition(index)
Variable Description
index The position of the text caret. The value is zero-based. Integer.

Examples

VB

textComponent.SetCaretPosition(15)