This site features dozens of physics-related java simulations. You may use them without registering, or you may register to be able to download them to your computer. These include two types of simulations. The first are written by Asso. Prof. Fu-Kwun Hwang
Dept. of physics, National Taiwan Normal University, and deal with kinematics, Dynamics, Wave, Thermodynamics, Electromagneticsand Optics. The others are Easy Java Siimulations which allows you to easily make simulations.
NTNUJAVA simulations -> kinematics -> Relative Motion (frame of reference)