public void setColor (int r, int g, int b)

Sets the current color of the color chooser to the specified RGB color. Note that the values of red, green, and blue should be between the numbers 0 and 255, inclusive.

Parameters:
r    an int specifying the amount of Red
g    an int specifying the amount of Green
b    an int specifying the amount of Blue

Exceptions:
IllegalArgumentException    if r,g,b values are out of range

See also:
java.awt.Color