View Full Version : Read several items at once (Java)

10-04-2004, 07:58 PM
Is it possible to use the IO.readDouble variable, but to have the user be able to enter more than one item at a time?

For example, if I wanted to the user to be able to enter in the grades of 10 different students, but didn't want them to have to enter one in, then click OK, then enter another grade in and click OK, then another ect... I just want one screen to appear with 10 boxes, that say student 1, student 2, student 3, ect... beside each of them.

How would I do this?

10-04-2004, 10:41 PM
Well I don't know what your "form" with the 1 input box looks like, but alter that form to have 10 boxes.

Then alter the code that executes on pressing the OK button so that instead of only looking at the 1 box, it executes the code on all 10 boxes.

The way I see it is that if you've got it working for 1 box, you should be able to make it work for multiple boxes using a loop.

Hope that helps,

10-04-2004, 11:05 PM
Thanks! :)