public static Color decode (String nm) throws NumberFormatException

Converts a String to an integer and returns the specified opaque Color. This method handles string formats that are used to represent octal and hexadecimal numbers.

Parameters:
nm    a String that represents an opaque color as a 24-bit integer

Returns:  the new Color object.

Exceptions:
NumberFormatException    if the specified string cannot be interpreted as a decimal, octal, or hexadecimal integer.

See also:
java.lang.Integer.decode

Since:  JDK1.1