Suspicious behavior in Component::paintComponentAndChildren()

not also that if you call setPaintingIsUnclipped (true) on a component then it will always get repainted whenever its child is repainted, even if it’s unnecessary (that’s an issue previously reported here), so perhaps the test should be changed to

if (flags.dontClipGraphicsFlag && getNumChildComponents() == 0)