O'Reilly logo

Java GUI Development: The Authoritative Solution by Vartan Piroumian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Fonts and Colors

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.

Organization of Color Support Classes

The classes that support colors in Swing are spread throughout several JFC packages, namely the java.awt, java.awt.color, and java.awt.image. The java.awt.image package defines classes that support creating and modifying images.

The java.awt.color package defines classes that support color ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required