Colliding Balls

Write a class named CollidingBallsAnimator that extends the TwoButtonBreadboard of the breadboards package. Upon entering some number of balls in the text field at the bottom of the breadboard window, and clicking the "Go" button, the same number of balls with randomly chosen initial positions, velocities, sizes, and colors will bounce perpetually off the sides of the central area of the window and each other. Clicking the "Stop" button should remove all of the balls from the screen.

For collisions between balls (of potentially different sizes), the physics of the situation should be as accurate as possible -- taking into account a mass for each ball proportional to the square of its radius.