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

REGRESSION: JColorChooser - setPreviewPanel no longer shows panel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs



      Name: gm110360 Date: 11/17/2003


      FULL PRODUCT VERSION :
      java version "1.4.2_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      The preview panel set with setPreviewPanel no longer appears.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just try to add a default previewpanel to the
      JColorChooser in any program!


      ACTUAL -
      Panel does not show.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class JColorChooserTest extends JFrame {
      public JColorChooserTest(){
      super("JColorChooserTest");
      JColorChooser cch = new JColorChooser();
      JButton button = new JButton("TEST");
      cch.setPreviewPanel(button);
      getContentPane().add(cch);
      setSize(200,200);
      setVisible(true);
      }
      public static void main(String[] args) {
      new JColorChooserTest();
      }

      }

      ---------- END SOURCE ----------

      Release Regression From : 1.3.1_09
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Incident Review ID: 218537)
      ======================================================================

            kereminsunw Konstantin Eremin (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: