Hi, Is this statement valid? topPanel.add(cbg); topPanel is of type Panel and cbg is of type CheckboxGroup. Rgds, Shree
Joined: Sep 18, 2000
Hi, Regarding the above question, i checked the api doc and found there is no add method for CheckboxGroup. Then , how do you add a CheckboxGroup object to a panel? Rgds\ Shree
Joined: Aug 30, 2000
Hi Shree, I just finished working my way through the AWT ; Here's some sample code for working with Checkbox and CheckboxGroup
I don't think there is any way to add a CheckboxGroup, per se, to a container; as it is NOT a component, it inherits directly from Object. Instead, you need to create a CheckboxGroup object, and assign the individual Checkbox items to the group. Then add the Checkbox items to the panel. Hope that helps.
------------------ Jane The cure for boredom is curiosity. There is no cure for curiosity. -- Dorothy Parker