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