I have a child component which has a semi-transparent colour, and because of that the final colour of the component is a mixture
of it’s colour and the colour of the parent component.
If I don’t want the child’s colour to be affected by its parent, does the only way is to manually change to parent’s paint() to skip over the child’s area?
If that is the case, it means I have to update paint() every time I change the position of the child component.
In solid colours I just use setOpaque(true) and I save the hidden painting, but that works only in solid colours.