BouncingBall is a project mainly written in Java, it's free.
An example on how to simulate gravity and friction in Swing
404: Not Found