This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Checkbox cb1 and cb3 have their state set to true. At //1 : Checkbox cb3 is set to belong to CheckboxGroup cbg. When,this is compiled and run,they appear as radio buttons,but both cb1 and cb3 are selected. Are they not radiobuttons in the true sense? Is it necessary to set the Checkbox to a CheckboxGroup in it's constructor itself ,to ensure mutually exclusive nature? Pl.clarify. Thanks.
now it only shows "lotus" as selected, but if you select any of the other 2, "lotus" is still selected, this was the best I could do. I�ll let you know if I discover a better solution or why does this happen. Francisco
Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank" rel="nofollow">here</a> to see an example.
Joined: Jul 13, 2001
Thanks Francisco. So,i guess for all practical purposes to ensure mutually exclusive nature for radiobutton,the Checkbox should be set with the reqd. CheckboxGroup in the constructor itself.