addHyperlink

abstract fun addHyperlink(lineIndex: Int, startOffset: Int, endOffset: Int, action: SwingHyperlinkAction)

Adds a detected hyperlink.

Parameters

lineIndex

logical line index from the detection request.

startOffset

inclusive UTF-16 offset within the line text.

endOffset

exclusive UTF-16 offset within the line text.

action

host-owned action invoked after explicit user activation.