|
|
|
|||
|
Working with GraphicsYou 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 iconsIf 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. Our examples create custom components, but you might also use this API when creating a custom border or icon implementation. This lesson finishes with information about animation.
Overview of Custom PaintingThis section gives you the information you need to start implementing custom painting in components. Using Graphics PrimitivesThis section teaches you how to paint simple shapes and display text effectively. It includes examples of using the Using ImagesThis section discusses how the Java platform supports images and tells you how to load and display images. Performing Animation
Many programs perform animation,
whether it's the classic, cartoon-style animation of Duke waving
or simply moving static images across the screen.
This section tells you how to perform animation,
using a
Common Graphics Problems (and Their Solutions)This section describes some common problems of graphics programs, along with possible solutions to these problems. | |||
|