code: private void highlightEntryParser(HighlightSearchEntry entry) {
  		String text;
  		int lastPos = 0;
  		
  		text = this.getText();
  		
  		Highlighter hilite = this.getHighlighter();
  		HighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter(entry.getColor());
  		
  		while ( (lastPos = text.indexOf(entry.getToken(), lastPos)) > -1) {
  			try {
  				hilite.addHighlight(lastPos, lastPos + entry.getToken().length(), painter);
  				lastPos += entry.getToken().length();
  			} catch (BadLocationException e) {
  				log.warn("Could not highlight entry", e);
  			}
  		}
  	}
docs: Highlight all found strings