This applet simulate a block moving in horizontal plane under influence of friction force. You can adjust the friction coefficient, external force. Another block (m2) can be add to the top of the first block and find out the friction force between those two blocks.
VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.