TextComponent.setSelectionEnd

TextComponent.setSelectionEnd

Class Overview | Class Members | This Package | All Packages

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

See Also
getSelectionEnd, setSelectionStart