static final int UP=50; static final int LEFT=40; static final int FLOOR=700; static final int RIGHT=500;Feel free to use different numbers. How big should the Frame be? The bigger it is, the farther the ball will be able to fall before it hits the floor; but the particular size is not critical. But it should be bigger than the box it surrounds!
public void paint(Graphics))