Interactive bouncing ball using JFrame.