Originally posted by Rachel Swailes:
I don't mean to sound silly, but what exactly does this do? Why do we have to setUI()?
Also, in the paint method, what is trackRect?
Cheers,
Rachel
You have to setUI because you are basically overriding the BasicSliderIU class so that you can do what you want (make the knob a different color). Sadly, there is not setKnobColor type method and this is the only way to go about it. Pain in the ass, huh.
trackRect is a protected variable of the BasicSliderUI class. It's basically a Rectangle that represents the bounds of the slider's track. Take a look at the API for
BasicSliderUI. It will clear up some of the confusion. But not all.

I still am far from a whiz at custom UI's.