Computer Science 252
Problem Solving with Java
Spring 2016, The College of Saint Rose
Agenda
Modify the FallingBalls example so that the object that falls is a VisibleImage displaying a small image showing some sort of ball of your choice (e.g., a baseball, basketball, beach ball, etc.) instead of a simple FilledOval. Recall that you will need to call getImage in your WindowController class and pass the Image object it returns to you as a parameter to the FallingBall constructor, where you can use it to create the VisibleImage. If you get run-time errors, check to be sure that you have no used any spaces in file or folder names anywhere along the path to your project. There is a bug in Java's API that causes getImage to fail if spaces are used in folder names.
Please demonstrate your program or submit your Java files by email before you leave class. Email submissions should use a meaningful subject line, clearly indicating the course number and assignment name.
Due at the start of class, Thursday, March 3.
Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT strose.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 252 Lecture 12 Assignment, Mary Smith). We will discuss these questions at the start of class, so no late submissions are accepted.
You need only submit your updated run method for the FallingSnow class. (5 points)
Examples