<<< A7 Simple Two-Button Program | Index | Constants defined in the Color class >>> |
Use with setBackground() and setForeground()
Provides named constants that represent 13 colors
Program can create custom Color object:
Color someColor = new Color( r, g, b );
where r, g, b are shades of each color; 0 represents the darkest and 255 represents the lightest shade
Program can also discover the red, green, or blue components of any existing color with getRed(), getGreen(), and getBlue()
<<< A7 Simple Two-Button Program | Index | Constants defined in the Color class >>> |