-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
None
-
mantis
-
sparc
-
solaris_7
Name: atR10191 Date: 08/06/2002
Checkbox is changing it's state after removing from CheckboxGroup.
See the example below.
============ Checkbox0020.java ==============================================
import java.awt.*;
public class Checkbox0020 {
public static void main(String[] args) {
CheckboxGroup g = new CheckboxGroup();
Checkbox chb = new Checkbox("Label", true, g);
chb.setCheckboxGroup(null);
if (chb.getState() == true ) {
System.out.println("OKAY");
System.exit(0);
}
System.out.println(" failed");
System.exit(1);
}
}
======== end of Checkbox0020.java ==========================================
======== output of Checkbox0020.java =======================================
failed
======== end of output of Checkbox0020.java ================================
==================================================
======================================================================
- relates to
-
JDK-4114268 Checkbox.setCheckboxGroup(null) alters selection for CB's previous CBGroup
- Resolved