Return to Unit Menu | | | Terms of Use  |

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 offers a pane of controls for picking a color from a palette of colors. It can be placed anywhere in a GUI program.


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.



Return to Unit Menu | | | Terms of Use  |

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,
Help us keep these resources free. Thank you.