This is more of a Swing question, I guess, but since I get this behaviour using DialogWrapper I thought I would ask. I apologize if this turns out to be a really rudimentary swing concept.
I've created a dialog that extends DialogWrapper. Within it I have added two buttons on which I have a mouselistener to toggle the background color when the pointer hovers over it. Unfortunately, unless I call repaint of both the button and its parent container, I always end up with artefacts around the border of the buttons.
Is it normal to have to call repaint manually, or am I missing something?