This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Looping JCheckBox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 32651
    
    4
. . . 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
How to perform Calculation when a button a pressed in a Frame
Run time checkbox values
create dynamic checkboxes
JTextArea & Cursor
Checkboxes?