Working with Graphics You might not need to read this lesson at all.
Many programs get by with no custom graphics.
If they display images, they do so using icons in standard Swing components such as labels and buttons . To display styled text, perhaps with embedded images and components, they use text components . To customize the edges of components, they use borders . If you can't find a component that paints what you need onscreen, then read on. This lesson teaches you how to display text, simple shapes, and images, using API that works in both JDK 1.1 and 1.2.