/colorpicker

A nice color picker using Java Swing that contains a visual color selection and input boxes to enter RGB and HSB values manually

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ColorPicker

A nice color picker using Java Swing that contains a visual color selection and input boxes to enter RGB and HSB values manually.

Usage

Use the class com.bric.colorpicker.ColorPicker as an entry point. You can easily initialize the panel using

ColorPicker colorPicker = new ColorPicker(true, true);
colorPicker.addColorListener(colorModel -> System.out.println(colorModel.getColor()));

This creates a color picker component with expert controls and opacity settings. If the user selects a color, the color listener will be notified.

Continuous Integration

Linux/Mac Build Status Windows Build Status Coverage Status Maven Central

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

This color picker was a part of the javagraphics project (http://javagraphics.blogspot.com), initiated by Jeremy Wood. The javagraphics project is a collection of small stand-alone projects.

Credits

The original color picker component is copyright 2011 by Jeremy Wood.

License

This modification of the color picker is released under a BSD 3-Clause license. More details can be found here:

https://opensource.org/licenses/BSD-3-Clause