ScrollBar LookAndFeel Reference

drawScrollbar, and drawScrollbarButton methods at LookAndFeel class needs a Scrollbar reference, but it’s OK to replace this with a Component reference. ( I already did the change and no problem, because it only needs the colours.) Could you replace the unnecessary references to derived classes with Component so we can use the LookAndFeel for our own classes as well.

I had to rewrite the ScrollBar (for some hard to explain reasons).

…well no, I can’t change that. For one thing, it might need the pointer as a scrollbar in future. Also, changing it will silently break anyone’s custom classes where people have overridden that method.

Why not just derive your custom class from Scrollbar?