super.paintComponent(g);
this.setSize(300,300);
int index = ballindex.getSelectedIndex();
Ball currentball = BallPanel.getBalls().get(index);
int radius = currentball.getRadius();
//Draw rectangle (yellow)
g.setColor(Color.BLACK);
int x = this.getWidth()/2;
int y = this.getHeight()/2;
g.setColor(currentball.getColor());
g.fillOval(x-radius,y-radius,radius*2,radius*2);
}