This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 443


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: 41062
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: create dynamic checkboxes!
Similar Threads
Jar Extraction Problem
searching JFrame
logic problem or thread problem?
create dynamic checkboxes
Zip file cretaed using java not opening