Goals

Checklist

  • You do not need to submit the warmup exercise.

  • MovingBall.java
  • Start from MovingBall.java
  • The html file is MovingBall.html (When you click here, Netscape may try to run a nonexistent applet. Choose File Save-As to save the html file in your directory.)
  • In order to keep the ball within the window, you need to keep the x and y components between -1/2 and 1/2. Method move determines the size of the current window and rescales the x and y components to fill up the window.
  • executing
  • use javac MovingBall.java to generate the files MovingBall.class and Ball.class
  • use appletviewer MovingBall.html to test the applet
  • to view your finished applet from a Web browser, make sure the following files are in your public_html directory and are world readable: MovingBall.html, Ball.class, and MovingBall.class
  • If the Reload button in your browser doesn't work, try Shift-Reload.
  • Other Sources

  • Check the Java section of the Frequently Asked Questions page for more info and relevant links.
  • Check out Wave Central for more sound files.