* @param int size
* @param String message - text for toolTip, contains the text of the error
*/
public void setHighlightText(int line, int lastIndex, int size, String message) {
Highlighter highlighter = pane.getHighlighter();
removeHighlightText(highlighter);
if (getText().length() > 0) {
try {
int position = getPosition(line, lastIndex);
int positionEnd = position + size;
highlighter.addHighlight(position, positionEnd, painter);
setToolTipPosition(line, message);
repaintPane();
}
catch (BadLocationException e) {
logObj.warn("Error: ", e);