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: No registered users and 3 guests