Name: rmT116609 Date: 10/18/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
1. Run the SwingSet2 demo.
2. Click the JColorChooser demo button (3rd one).
3. Click any of the color buttons.
4. Click the HSB tab.
5. Click in the lower left corner of the gradient
palette in order to select a color such that
all three RGB values are single digit colors
(such as 0, 0, 0 or 5, 3, 1).
6. Click another tab, then click back to the HSB tab.
7. Now click the lighter colors that should have
2 and 3 digit RGB values. The bug is that only
the last digit of their values show.
Explanation:
DefaultHSBChooserPanel uses a layout class called
SmartGridLayout to lay out the RGB part. It does so
on tab changes and apparently focus events. The problem
is that once it has layed out the RGB text fields for
a single digit, they will only become wide enough for
more digits if layed out again. Simply clicking
colors on the gradient palette does not cause a layout.
Therefore, the text fields remain too small until
a layout causing event occurs.
(Review ID: 109782)
======================================================================