TextComponent.setSelectionStart

TextComponent.setSelectionStart

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void setSelectionStart( int selectionStart )
Parameters
selectionStart
the start position of the selected text.
Description
Sets the selection start for this text component to the specified position. The new start point is constrained to be at or before the current selection end. It also cannot be set to less than zero, the beginning of the component's text. If the caller supplies a value for selectionStart that is out of bounds, the method enforces these constraints silently, and without failure.

See Also
getSelectionStart, setSelectionEnd