getgreen java

Java Color Example

Colors play a very important role to get user’s attraction to the text (emphasize). To support colors, Java comes with java.awt.Color class. This Java Color Example changes rectangle color. To create different colors, the Java AWT package comes with Color class. The Color class allows to create colors and at…