Hi!
Is there a way to add icons on the side of the RSyntaxTextArea?
I want to mark some of the lines - by adding an icon near it, in the matching line.
(like eclipse does for breakpoints, compilations problems).
thanks.
Moderator: robert
scrollPane.setIconAreaEnabled(true);
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 1 guest