The natural size of a JPanel is like 0,0 or something. So you just cannot see the Ball JPanel.

The easiest way to do this would be to make the Ball JPanel your content pane. To do that, change...