The Java tutorials, 2D Graphics
Several tutorials on that page, includes sample code and running examples