-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b105
-
b112
-
generic, x86
-
generic, solaris
-
Verified
JColorChooser.getPreviewPanel() returnes null starting from jdk7 b105.
2 JCK7 tests are affected:
api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#protected[BasicColorChooserUI2005]
api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#public[BasicColorChooserUI0001]
Following code demonstates the problem:
import java.awt.*;
import javax.swing.*;
public class test {
public static void main(String argv[]) {
JColorChooser colorChooser = new JColorChooser();
colorChooser.getPreviewPanel().getForeground();
}
}
2 JCK7 tests are affected:
api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#protected[BasicColorChooserUI2005]
api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#public[BasicColorChooserUI0001]
Following code demonstates the problem:
import java.awt.*;
import javax.swing.*;
public class test {
public static void main(String argv[]) {
JColorChooser colorChooser = new JColorChooser();
colorChooser.getPreviewPanel().getForeground();
}
}
- duplicates
-
JDK-6978490 Two java/swing test failed just against jdk7 b105 and passed against b104
- Closed
- relates to
-
JDK-6199676 REGRESSION: ColorChooser loses preview when change LandF in Java5
- Closed