The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Creating a GUI with JFC/Swing
Lesson: 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 Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form