Graphics and Java 2D

(Chapter 12)

public void paint(Graphics g)

So, what can we DO in the paint() method? Pretty much anything that's available in the Graphics class, and then some.
 

class Graphics and other useful helper classes


Java2D

The Java2D API provides advanced graphics capabilities, for more detailed and complex two-dimensional drawing.

Java 2D API -- for an overview, see this page on the Java web site.

A Java-2D Tutorial


Deitel examples - Chapter 12