public void actionPerformed(ActionEvent e) { ball.changeColor(colorList[++colorNo % colorList.length]); repaint(); }
public void start() { ball = new Ball(50, 50); ball.changeColor(colorList[0]); }