I’m using setPaintingIsUnclipped(), and I am definitely drawing within my bounds, but what I am seeing is that if a parent component has setPaintingIsUnclipped(true), it is possible for child components to draw outside the parent’s bounds.
For example, I have a button in the corner of its parent Component with bounds = (-2, 0, 32, 16). The reason I put it at x coordinate -2 is so that its frame will not be visible. The both Component have setPaintingIsUnclipped(true), I am only drawing within the bounds, but the child is not getting clipped to the parent’s bounds.
So I guess what I am asking, is it expected behavior that when setPaintingIsUnclipped is true, child Components can draw outside their parent’s bounds?