Processing (processing.org) is a great tool in learning to program and you can make some amazing stuff with it - just look at the exhibit. These slides step through creating your first little applet, how to override PApplet, the setup() and draw() methods, and animating your applet.