The Simulations in Physics book is based on code in the Open Source Physics project.  This code is being released under the GNU Open Source license.