For some reason the ball is still going off the top of the frame. Im not sure why.





import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;