This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi, Is this statement valid? topPanel.add(cbg); topPanel is of type Panel and cbg is of type CheckboxGroup. Rgds, Shree
Regards,<BR>Shree
shree vijay
Ranch Hand
Joined: Sep 18, 2000
Posts: 208
posted
0
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
Jane Griscti
Ranch Hand
Joined: Aug 30, 2000
Posts: 3141
posted
0
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