I am getting the error that it is the thread title when running this code:
The error began to show up when I added this three lines related to the Highlighter. I think it might be related to the index that I am passing to addHighlight but I am not sure.
I made I self-contained version of the error here:
But with this code I don't get the same error.....what I am getting now it is a nullPointerException in line 24 the
one
The frame is created shows the two first words before generating the error.
Anyone has an idea about what can be?
I also would appreciate if someone can provide me a few tips, links or whatever about how I can advance in text using the keyboard. In another words, if I press right it advances until a certain occurrence of a certain
word, then if I press again, it advances to the next one until I reach the last occurrence of a word.