@Throws(javax.swing.text.BadLocationException::class) fun addLineTrackingIcon(line: Int, icon: Icon?): GutterIconInfo? { val offs: Int = textArea.getLineStartOffset(line) return addOffsetTrackingIcon(offs, icon) }
Adds an icon that tracks an offset in the document , and is displayed adjacent to the line numbers . This is useful for marking things such as source code errors .