-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
merlin
-
generic, sparc
-
generic, solaris_2.6
Name: diC59631 Date: 01/06/99
Addition -- calling colorChooser.setUI(colorChooser.getUI());
corrects the problem of having to add my own change listener.
----
If I install a custom preview panel to a JColorChooser, it is never notified of changes to the ColorSelectionModel. It looks like the
source for BasicColorChooserUI does the notification automatically (calling JComponent.setForeground() on the panel). However, I
have to add my own ChangeListener to the ColorSelectionModel in order for my panel to be notified.
Work around includes sample program. Comment out the addChangeListener line to see problem.
(Review ID: 48981)
======================================================================
- duplicates
-
JDK-4179685 Preview Panel Foreground Color Trick doesn't work in ColorChooser.
- Closed
- relates to
-
JDK-6718965 Swing color chooser tests should be open source
- Closed