When using the graphics object in the paint() method of a Java Applet,
Does anyone know how to use a method on the graphics object whereby it will return the name of the color being used?
After using g.setColor(Color.red);
Then drawing a rectangle
Ive tried using g.getColor().toString();
But this only returns a string like this: "java.awt.Applet[r:255 g:0 b:0]"
Im looking to get back "Red" if its possible