-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.6, 1.2.0
-
generic, x86
-
generic, windows_nt
Name: clC74495 Date: 11/16/98
With the setSelected() method of ButtonGroup, I can pass a ButtonModel
not in the ButtonGroup to the method.
This results in nothing selected
for the group.
I can also pass null as the model, which results in the same
thing.
According to the javadoc documentation:
"Once any button is selected, one button is always selected in the group.
There is no way to turn a button programmatically to "off", in order to
clear the button group. "
This behavior seems in error.
Can one legitimately pass a model not in the group (or null) to clear the
selection?
(Review ID: 42768)
======================================================================
- duplicates
-
JDK-4066394 ButtonGroup - cannot reset the model to the initial unselected state
-
- Resolved
-