This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Looping JCheckBox  RSS feed

 
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
Marshal
Posts: 55715
163
  • 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
Boost this thread!