JDK-4179685 : Preview Panel Foreground Color Trick doesn't work in ColorChooser.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1998-10-07
  • Updated: 2000-02-15
  • Resolved: 2000-02-15
Related Reports
Duplicate :  
Description
The preview panel in the color chooser is supposed to update the foreground color when the selection changes.  It doesn't.
steve.wilson@eng 1998-10-07

Comments
EVALUATION Yup. steve.wilson@eng 1998-10-07
07-10-1998

SUGGESTED FIX if ( e.getPropertyName().equals( JColorChooser.PREVIEW_PANEL_PROPERTY ) ) { JComponent oldPanel = (JComponent) e.getOldValue(); JComponent newPanel = (JComponent) e.getNewValue(); if (oldPanel != null) { // fix for 4166059 chooser.remove(oldPanel); } chooser.add(newPanel, BorderLayout.SOUTH); add this------> previewPanel = newPanel; } steve.wilson@eng 1998-10-07
07-10-1998