JPanel setBackground (Color.BLACK) nic nie robi

Mam następujące niestandardowe JPanel i dodałem go do mojej ramki za pomocą programu budującego GUI Netbeans, ale tło się nie zmieni! Widzę okrąg, rysując za pomocą g.fillOval (). Co jest nie tak?

<code>public class Board extends JPanel{

    private Player player;

    public Board(){
        setOpaque(false);
        setBackground(Color.BLACK);  
    }

    public void paintComponent(Graphics g){  
        super.paintComponent(g);
        g.setColor(Color.red);
        g.fillOval(player.getxCenter(), player.getyCenter(), player.getRadius(), player.getRadius());
    }

    public void updatePlayer(Player player){
        this.player=player;
    }
}
</code>

questionAnswers(6)

yourAnswerToTheQuestion