Here is another one with two blocks.

Click the eye (image) to display the simulation
[eye]

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/frictionBlock2_pkg/frictionBlock2.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(990.9kB):double click downloaded file to run it. (3 times by 2 users) , Download EJS source View EJS source
[/eye]