Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

jcheckbox

  Asked By: Hisham    Date: Dec 04    Category: Java    Views: 462
  

I have 200 checkbox... normally we can declare it like in example1, is it
possible for me to create checkbox like in example 2... after that I want to
manipulate it by sending text by enabling depends on the checkbox... can i use
the b[i] referencing the object such as b1 or b2 or b3 .... etc Please help
Example1
Jcheckbox b1 = new Checkbox("check 1");
Jcheckbox b2 = new Checkbox("check 2");
Jcheckbox b3 = new Checkbox("check 3");
Jcheckbox b4 = new Checkbox("check 4");
Jcheckbox b5 = new Checkbox("check 5");
.
.
.
.
.
.
Jcheckbox b200 = new Checkbox("check 200");

Example 2
for ( int i =1;i<=200; i++ )
JCheckbox b[i] = new JCheckbox("Check " +i );

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on jcheckbox Or get search suggestion and latest updates.

Related Topics:



Tagged:  

 

Related Post