JDK-4955116 : REGRESSION: JColorChooser - setPreviewPanel no longer shows panel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-11-17
  • Updated: 2003-11-19
  • Resolved: 2003-11-19
Related Reports
Duplicate :  
Description

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

Comments
EVALUATION Name: keR10081 Date: 11/19/2003 This seems to be a duplicate of 4759306, which have been fixed in Tiger. Not reproducible at least with 1.5.0b25. Closing out. ###@###.### ======================================================================
24-08-2004