Adding / Removing a checkbox from a checkbox group at runtime does not work properly. I am having a checkbox which is already added to a checkbox group. When the user clicks a button on the frame, I am setting it's checkbox group to null by calling Checkbox.setCheckboxGroup(null). When the user clicks the same button again, I am setting a valid checkbox group to this checkbox. What I am expecting here is that the checkbox should change to a radio button whenever it is added to a checkbox group and should become a normal checkbox when it's checkbox group is set to null. This does not seem to be happening. The checkbox retains it's old state until the user clicks it.
This is reproducible only on Win32 and not on Solaris / Linux. This is reproducible atleast since Mustang-b15. I don't have other mustang builds to identify where exactly this was introduced. This is not happening on Tiger-FCS. So it must have been introduced somewhere in between Mustang b01-b15.
I have attached a test. Run the test on WinXP. Select the last checkbox. Click on the button 'GetSelectedText'. The checkbox should change to a radio button. Click on the button again. The radio button should change back to Checkbox. If you don't see this, then the bug is reproduced.
###@###.### 2005-2-04 17:32:15 GMT