Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4410700

JColorChooser decreases RGB value when switching between tabs.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.1
    • client-libs



      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


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

            Unassigned Unassigned
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: