learn java
The moose likes Beginning Java and the fly likes create dynamic checkboxes! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

create dynamic checkboxes!

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
I am trying to create dynamic checkboxes as below. It works. But how do I check the status of each checkboxes. My exact doubt is how do I refer to dynamically created checkboxes. Please see my code below: I want to modify so that I can refer to each dynamically created checkboxes.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 445


Why dont you save the references in a List inside the loop where you are creating the individual check boxes?

Does this answer your query?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
I agree. Here's the link: http://aspose.com/file-tools
subject: create dynamic checkboxes!