selected

fun selected(jTextComponent: JTextComponent): String

Answer the String of characters selected between the DotPosition and the MarkPosition.

Return

The selected text.

Parameters

jTextComponent

The JTextComponent to extract the selected text from.