Java Reference
In-Depth Information
DAY 13:
Graphics
Today, you work with Java classes that add graphics to a graphical user
interface with Java2D, a set of classes that support high-quality, two-
dimensional images, color, and text.
Java2D, which includes classes in the
java.awt
and
javax.swing
pack-
ages, can be used to draw text and shapes such as circles and polygons;
use different fonts, colors, and line widths; and work with colors and
patterns.