## Color Picker Demo

### Description

This directory contains the colorPicker demo, a Java program that illustrates the use of some of the most often used BWT widgets. The colorPicker is a useful tool for finding rapidly a desired color and it also illustrates the use of tabs for setting preferences.

### Sample Applet

Above you will see the colorPicker applet. The main applet is organized as a tabbed panel with two main panels : colorSample and preferences. The colorSample panel provides controls to quickly obtain a color. The preferences panel allows the user to customize the colorSample panel.

The colorSample panel contains 3 main areas : the sliders and buttons area, the sample color area and the color list area. Use the sliders to change the background color of the sample color area. Use the Brighter button to obtain a brighter color. Use the Darker button to obtain a darker color. Pick a color from the combo box or type one in (in the format "R,G,B") to change the currently selected color.

The preferences panel provides two sets of preferences : Color Mode and Display Format. The Color Mode can be RGB (Red Green Blue) or HSB (Hue Saturation and Brightness). The Display Format contains display options such as displaying the color list and displaying the RGB color components in hexadecimal (base 16).

### Source Code

The source code is organized into the following files:

1. The main code, creates a card with two panels
2. The Color Sample panel
3. The Preferences panel
4. The main object for this demo