firstLineStartInSelection

fun JTextComponent.firstLineStartInSelection(): Int

Locate the position of the beginning of the first line enclosing the active selection.

Return

The position of the desired linefeed (U+0009) character.