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
======================================================================