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 ...
Get Java GUI Development: The Authoritative Solution now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.