In Swing, its possible to use HTML to style the words on a label. E.g if I wanted a certain word on a label to be bolded or be of a different color, I could do that with HTML.
Is there an equivalent feature for SWT? Say if I had the words “A quick brown fox jumped over a lazy dog” as the text of a label, and I wanted to change the color of “fox” to be brown, how would I do that?
If you really need a
Label, you can use the code below. Otherwise I would suggest aStyledText(as mentioned in the comments):With
StyledTextit would look something like this: