setSelectTextOnFocus

fun JComponent.setSelectTextOnFocus(selectTextOnFocus: Boolean?)

Specifies whether the contents of this component or its nested children should be selected on focus gain.

Parameters

selectTextOnFocus

If true, the contents of this text component or its nested children will be selected on focus gain. Pass null to reset to the default behavior.