The general advice for Drawable objects is to not use the Component::setBounds() methods (see here).
Instead, I’d recommend using the Drawable::setTransformToFit() method to position your child Drawable inside its parent.
The general advice for Drawable objects is to not use the Component::setBounds() methods (see here).
Instead, I’d recommend using the Drawable::setTransformToFit() method to position your child Drawable inside its parent.