vijayakumar durai wrote:can any body tell how to uncheck the checked check box in group?
What part are you having trouble with: determining which box is the checked one, or performing the unchecking?
If the former, one approach is to not bother and just attempt to uncheck them all.
And, dovetailing with with some of the other posters here, if you don't know why you're using AWT over Swing then you should probably just use Swing. (There are situations where AWT is called for, but they are relatively rare and I would think you would be aware of it if you were in one.)
i am doing exam project in this first question will come from database i am creating check box from group. it will have 4 checkbox for options in awt if user select any one checkbox and click next button it will display second question i am displaying question from label i
when icheckedoption for first question it will also checked for second question
i am changing label value using
Checkboxes essentially denote multiple choices. As per your description, a Radio button would be an appropriate choice.
Coming back to your problem, "it doesn't work" does not help us help you. Have you ensured (by debugging perhaps) that the uncheck code is really getting triggered? Always share the details If you had peeked through the CheckBoxGroup API, you would have noticed setSelectedCheckbox method. Read the API documentation to figure out how to deselect all checkboxes in that group.
Joined: Aug 18, 2008
actually i am adding checbox in checkbox group can any body tell how to get the name of selected check box?