For next semester: fix window size to 600 x 600 so there is no need
for extra code to get height and width. Maybe use double buffering
for smoother animation. Would multithreading be necessary with
double buffering? Create new method computeForces()
instead of doing this in moveall.
Goals
- Simulate the movement of several bodies under gravitational
forces.
- Learn more about Java.
Checklist
Other Sources
Check the Java section of the
Frequently Asked Questions
page for more info and useful links.
I left my copy of Deitel and Deitel for Java
in CS101 for your reference. Do not remove this book from the
lab or the final will be really really hard. :)