JDK-6552812 : Add HSL tab to JColorChooser
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.5a,5.0,6,6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_2000
  • CPU: x86
  • Submitted: 2007-05-02
  • Updated: 2017-05-19
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
7 b38Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Add Hue-Saturation-Luminance tab to JColorChooser.
Add the following methods to the Color class:
static Color getHSLColor(float h, float s, float l)
static int HSLtoRGB(float hue, float saturation, float lightness)
static float[] RGBtoHSL(int r, int g, int b, float[] hslvals)

This feature is requested because of only one thing: "usability".

Users of our application, wheter a graphics artist or an ordinary user, can choose color easily when using hsl instead of hsb. This maybe the reason why many graphics tools has hsl support. W3C opted for hsl instead of hsb for the CSS3.

Please refer to http://www.w3.org/TR/css3-color/#hsl-color for the advantages of hsl which is symmetrical to lightness and darkness.

EVALUATION Default panels were rewritten and two new panels were added. Now JColorChooser supports the following color spaces: HSV, HSL, RGB and CMYK. Several related bugs were fixed (6317840, 6417055, 6559154, 6579827).

EVALUATION We should modify the HSB to to support HSL using the same 3D diagram...