Sorry, I was away for a while.
The applet works great! 
Is it possible to have a different bar graph for the potential energies (spring and gravitational)?