TopBox.javaBall.java

Ball.java

import objectdraw.*;
import java.awt.*;

// Name:
// Lab:

public class Ball extends ActiveObject
{

   // Add the parameters that you need.
   public Ball()
   {
      // Add your code here.  Make sure that the start method call is the last thing
      // in the constructor.
      
      start();
   }
   
   public void run()
   {
      // Change the true condition to the condition that tests for the ball reaching 
      // the bottom of the playing area.
      while (true)
      {
         // Add code to move the ball a small distance down here.
         pause(50);
      }

      // Add the code that should be executed when you reach the bottom of the 
      // playing area.
   }
}

TopBox.javaBall.java