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: Performing Custom Painting

Summary

This lesson introduced you to the concepts and rules that will enable you to create Swing components that perform custom painting. Although the lesson doesn't explicitly talk about implementing an icon (in the Creating a GUI with JFC/Swing trail) or border (in the Creating a GUI with JFC/Swing trail), the rules are similar. An icon or border is just an object that knows how to paint itself; it needs a component to provide the graphics context. An example of implementing a custom icon is in Creating a Custom Icon Implementation (in the Creating a GUI with JFC/Swing trail).

For information on painting, see the 2D Graphics (in the Creating a GUI with JFC/Swing trail) trail. Another great resource is The Swing Connection (outside of the tutorial), which has articles such as Painting in AWT and Swing (outside of the tutorial) and Unleash Your Creativity with Swing and the Java 2D API! (outside of the tutorial)


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

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.