Previous | Next | Trail Map | Creating a GUI with JFC/Swing | Working with Graphics

Using Graphics Primitives

The next few pages provide the details you'll need to generate primitive graphics and text.

Painting Shapes

This page tells you how to paint shapes, such as lines, rectangles, ovals, arcs, and polygons.

Working with Text

This page tells you how to use paint text using the Graphics drawString method. It also tells you how to use Font and FontMetrics objects to get information about a font's size characteristics.


Previous | Next | Trail Map | Creating a GUI with JFC/Swing | Working with Graphics