scrollTextWithLineNumbers

fun JTextPane.scrollTextWithLineNumbers(): JScrollPane

Either places the receiver JTextArea inside a JScrollPane with line numbers presented as row headers, or answers the JScrollPane that it's already inside.