ColorDialog.setCustomColors

Overview | Methods | This Package | All Packages

ColorDialog.setCustomColors

Sets an array that represents the set of custom colors that are defined in the dialog box.

Syntax

public final void setCustomColors( int[] value )

Parameters

value

An array of integers that represent the RGB values for colors that will appear on the custom colors area of the dialog box.

Remarks

Each integer in the color array contains three values in the range 0-255 that represent the red, green, and blue components of the color. The red value is stored in the high-order byte, the green value in the middle byte, and the blue value in the low-order byte. Use the Color.getRGB method to convert a Color object to an RGB integer.

See Also   getCustomColors