wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Looping JCheckBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Looping JCheckBox" Watch "Looping JCheckBox" New topic
Author

Looping JCheckBox

Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
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


How simple does it have to be???
Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
Yay,

got it done,

davy
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38001
    
  22
. . . and how did you get it to work? People would be interested to know.

CR
Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
well this was my loop:



davy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Looping JCheckBox
 
Similar Threads
Checkboxes?
JTextArea & Cursor
How to perform Calculation when a button a pressed in a Frame
Run time checkbox values
create dynamic checkboxes