SWT List w/ colored lines?
Hi everyone,
I've been googling my brains out for two days now and did not seem to find anything that works for me. I hope that maybe you guys can help me out. And yeah, sure - I looked through your forums as well before posting.
So, what I want to have is a simple List widget, only with one item kind of marked up. What I have is a list of profiles where one of them is the default profile. Now, I could just put "profile1 (default)" as the actual item, but I wondered if it's possible to create a highlight by making this specific item written in bold or some color.
Yes, there's setForegroundColor(...), but it obviously sets the color for the whole list, and not only for one (or some) list items.
I thought that maybe one could create some sort of a style object to append as a list, but that's only possible with the StyledText widget, which I have also worked with repeatedly. Thing is, StyledText just doesn't feel good as a "worked-around" multi-colored list.
So, in short, I need:
1. an swt.widgets.List
2. which is able to have its items (or one of them) displayed in either a bold font or some color (let's say red).
Any ideas?
Thank you for your time,
- p!lle.