The java.awt.Color class offers three services:
static convenience methods
The static convenience methods mostly involve constructing a Color from a String. Instance methods provide access to the color's rgb makeup, return darker or brighter shades of a color, perform an equality test, etc. The color constants are final static Colors that are used to represent commonly used colors and are listed below.
Color.black Color.blue Color.cyan Color.darkGray Color.gray Color.green Color.lightGray Color.magenta Color.orange Color.pink Color.red Color.white Color.yellow
Most use of the Color class involves accessing the constants listed above. Colors can be constructed, if need be, by one of seven ...