SetCaretPosition Method (JTextComponent)

Class

JTextComponent class

Action

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

Syntax

textComponent.SetCaretPosition(index)
Variable Description
index The position of the text caret. The value is one-based. INTEGER.

Examples

TextComponent.SetCaretPosition(15)