TextComponent.select

TextComponent.select

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void select( int selectionStart, int selectionEnd )
Parameters
selectionStart
the start position of the text to select.
selectionEnd
the end position of the text to select.
Description
Selects the text between the specified start and end positions.

This method sets the start and end positions of the selected text, enforcing the restriction that the end position must be greater than or equal to the start position. The start position must be greater than zero, and the end position must be less that or equal to the length of the text component's text. If the caller supplies values that are inconsistent or out of bounds, the method enforces these constraints silently, and without failure.

See Also
setSelectionStart, setSelectionEnd, selectAll