Judicious use of colors and fonts can make your application more appealing and also improve the clarity of its user interface. This chapter describes the support for colors and fonts in the AWT and Swing toolkits. Please keep in mind that this chapter does not cover the advanced features defined by the Java 2D API.
The classes that support colors in Swing are spread throughout several JFC packages, namely the
java.awt.image package defines classes that support creating and modifying images.
java.awt.color package defines classes that support color ...