Java Reference
In-Depth Information
Changing the Color Chooser Panels
The various tabs in the upper part of the JColorChooser represent the AbstractColorChooserPanel
implementations. Each allows the user to pick a color in a different manner. By default, the
ColorChooserComponentFactory provides the JColorChooser with three panels (see Figure 9-22):
The Swatches panel lets a user pick a color from a set of predefined color swatches, as if
at a paint store.
The HSB panel allows a user to pick a color using the Hue-Saturation-Brightness
color model.
The RGB panel is for picking colors using the Red-Green-Blue color model.
Figure 9-22. The default JColorChooser panels
Search WWH ::




Custom Search