JDK-4410700 : JColorChooser decreases RGB value when switching between tabs.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-02-01
  • Updated: 2001-02-01
  • Resolved: 2001-02-01
Related Reports
Duplicate :  
Description

Name: asR10013			Date: 02/01/2001



Bug description ---> JColorChooser decreases RGB value when switching between tabs.
****************************************************************************
Failing Test:
=============

JCK : 
=====

Test source location:
====================


Platforms:
=============
Windows NT 4.0
Windows ME
Windows 95

JDK, switches Info:
===================
java version "1.3.1-beta"                                              
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)
           
jtr file location:
==================

How to reproduce:
====================
Compile and run the following program.
1. Switch to RGB tab and make sure that R = 127, G = 127, B = 127
2. Swith to HSB tab then switch back to RGB.
You will see R=126, G=126, B=126.
Also, R, G and B values will be decreased every time you switch between RGB and HSB tabs.


Source
======
//---------------------------- test.java --------------------------------------------
import javax.swing.JColorChooser;

public class test {
    public static void main( String[] args ) {
        JColorChooser.showDialog(null, "test", java.awt.Color.gray);
        System.exit(0);
    };
};
//---------------------------- end test.java --------------------------------------------

Test output:
=============

Specific Machine Info:
=====================
hostname: linux-11

Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto


======================================================================

Comments
EVALUATION This is a duplicate of 4234761, refer to it for more details. scott.violet@eng 2001-02-01
01-02-2001