I'm trying to do something that *seems* like it should be
simple, but I'm having trouble figuring it out.
I've got a regular List control displaying an Array of
Strings. What I want to do is change the the appearance of a
selectedItem from the stock blue-rectangle background to a
rounded-cornered, unfilled yellow rectangle. That's it. How does
one do this? I've tried messing with ItemRenderers, extending the
Halo classes, etc., and nothing seems to work.
I found something that worked, actually -- I ended up
creating a new class extending the List class, then overriding the
drawSelectionIndicator and drawCaretIndicator methods, replacing
the drawRect calls within each with drawRoundRectComplex ones
instead. Worked like a charm.