Convenience class that contains one single method to decode Applicet and JApplicet
parameter Strings to a Color value, which is quite commonly required (some
IDE code generators even put such a method by default into your
applet's java code).
We supply this class as a free service to all Applicet users.
You are allowed to modify this source code, provided you move the class out of
the be.arci package hierarchy.
Since:
05/feb/2000
Method Summary
static java.awt.Color
getColor(java.lang.String sColor)
Convenience method to convert an HTML-style hexadimal "RRGGBB" or
"#RRGGBB" color number or one of the predefined Color names
(case-insensitive) to an awt.Color object, or null if
no color is matched.
public static java.awt.Color getColor(java.lang.String sColor)
Convenience method to convert an HTML-style hexadimal "RRGGBB" or
"#RRGGBB" color number or one of the predefined Color names
(case-insensitive) to an awt.Color object, or null if
no color is matched. The predefined Color names are
"black"
"white"
"blue"
"cyan"
"darkGray"
"gray"
"green"
"lightGray"
"magenta"
"orange"
"pink"
"red"
"yellow" (my favorite color, though not for applets)
Parameters:
sColor - The color name or number. May be null or an empty String.