• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looping JCheckBox

 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,

I want to make some JCheckBox's
4 in a line but iterating this row 24 times e.g.
checkBox1 checkBox2 checkBox3 checkBox4
checkBox1 checkBox2 checkBox3 checkBox4
checkBox1 checkBox2 checkBox3 checkBox4
checkBox1 checkBox2 checkBox3 checkBox4
etc

I have JTextAreas with 2 rows, and I want the JCheckBox to record something about the row of the JTextArea.

here is my code to loop through, needless to say it is wrong.


what am I doing wrong?

here is a pic of what I am working on, to show what I mean


davy
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yay,

got it done,

davy
 
Campbell Ritchie
Sheriff
Pie
Posts: 50175
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and how did you get it to work? People would be interested to know.

CR
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well this was my loop:



davy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic