Please post your email address and I wil send you the source code. However, it was written many years ago with JDK 1.0.2 If you want to program similar java applet. I would suggest you try to learn EJS (Easy Java Simulation) tool. It will generate the java aource code for you, but you need to provide the physics model.