Are Painters "aware" of focus?
I would like to know if a Painter has awareness of the component using it having focus or not?
I need to paint an image behind a button only when it is selected. What would be a good to implement this?
The only solution I have found so far is to replace the button's bgImage in the Form's paint method, but then I need to call repaint() inside the paint(), which sounds a bit messy to me. Or is it OK?
Thanks in advance.