Gutter gutter = scrollPane.getGutter();
GutterIconInfo info = gutter.addLineTrackingIcon(line, icon);
GutterIconInfo info = ...;
// Get the document offset the icon is currently at (the first offset of the line, if
// it was added via addLineTrackingIcon()).
int offs = info.getMarkedOffset();
// Use the text area it was added to to get the line of the offset.
int line = textArea.getLineOfOffset(offs);
Users browsing this forum: Google [Bot] and 7 guests