SetSelectionRange メソッド (JTextComponent)
クラス
JTextComponent
.
処理
指定した範囲のテキストを選択します。
構文
textComponent
.
SetSelectionRange
(
selectionStart
,
selectionEnd
)
変数
説明
selectionStart
選択範囲の開始インデックス。 The value is zero-based.。
Integer
。
selectionEnd
選択範囲の終了インデックス。 The value is zero-based.。
Integer
。
例
textComponent.SetSelectionRange
(8, 13)