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