I want to display text in a swing panel, problem is, each word is supposed to have a different color.
I know that I could use a JLabel and use HTML-input into that label. I would really like not to have to do this though.
For one, my words might include < and/or > signs. Furthermore some of the words are user input and a mischievous user might enter HTML-code to screw with the interface.
Another thing is, that this big HTML input is not as easy to maintain then having a simpler API. All I need is some color.
So, if there is any alternative to this, I would really appreciate if anybody could point me in the right direction.