Hi folks, long time lurker
I've got a problem with Style Attributes not always colouring stuff.
I'm simplifying the code here, my set up is pretty complex, but I think the snippet below is a good representation of the problem.
I have the following method:
This outputs the location of the word and then colours it in blue. Everytime I call it, the values of the "word" value are different, as I want to colour different parts of the document.
When I call the above method several times within a second or so, MOST of the time, it colours the text correctly.
But sometimes, it doesn't.
I know it can find the location of the word just fine, due to the println, I'm confused as to why the changes sometimes dont apply?
Do I need to go back and and look at my code further or is it something to do with StyleConstants/Attributes?
Apologies for not posting exact code - I just have a feeling its not the code but a 'feature' of java doing this.
Thanks in advance,
Clive