I have JPanel in a container of a JFrame called Box

```
public Box(){
        add(new Ball());
    }

    public void paint(Graphics g){
        g.setColor(Color.WHITE);
        g.fillRect(OFFSET, OFFSET, WIDTH, HEIGHT);
        g.setColor(Color.BLACK);
        g.drawRect(OFFSET, OFFSET, WIDTH, HEIGHT);
    }

```

Ball extends Component and draws a ball

```
public class Ball extends Component{
   ...
public void paint(Graphics g){
    g.setColor(Color.BLACK);
    g.fillOval(xCoord, yCoord, radius, radius);
}
   ...
}

```

When I add a Box with a Ball to the container I can only ever see the Box. If I just add a Ball I can see the Ball.

Does anyone know why the Ball is not visible when added to a Box?