The "BallWorld" class - version 3 To make our ball move several times, we can simply change the test we perform in the "paint" method. By changing the test to: if( counter < 10 ) the application will continue to move and repaint myBall 10 times, rather than just once. The full source file for "BallWorld.java - version 3" is available for viewing (and can be opened in the Kawa editor). Back to top 
RITSEC - Global Campus Copyright ?1999 RITSEC- Middlesex University. All rights reserved. webmaster@globalcampus.com.eg |