datalogo
Return to Unit Menu |  JavaBitsNotebook.com | MathBits.com | Terms of Use  | JavaMathBits.com

Creating a JColorChooser

In Swing, the JColorChooser class creates a dialog box allowing the user to not only select a color of their choice, but also to manipulate the color. It is an impressive option.

JColorChooser

JColorChooser offers a pane of controls for picking a color from a palette of colors. It can be placed anywhere in a GUI program.

dividerdash

Create and Activate a JColorChooser:
 

Example: The user is asked to choose the background color for the window. A color panel will appear for the user to use to make a color choice.

cc4

 
  cc1
cc2

divider
Return to Unit Menu |  JavaBitsNotebook.com | MathBits.com | Terms of Use  | JavaMathBits.com

Notice: These materials are free for your on-line use at this site, but are not free for the taking.
Please do not copy these materials or re-post them to the Internet, as it is copyright infringement.
If you wish hard-copies of these materials, refer to our subscription area, JavaMathBits.com.
Help us keep these resources free. Thank you.