Accesing Textfields in a loop

Hi

I am making an applet in Java that has 40 textFields. I named them textField01, textField02, ... to textField94. These textFields are supposed to be changin frequently while applet runs, so I wondered if there is a way to acces these textFields in a loop.

My idea was to have two loops changing i from 0 - 9 and j from 1 - 4 and somehow call textFieldij.setText(...);

Ofcourse this does not work, so I wonder if there is a way to fill these textFields in a loop and how.

Thanks for any replies!

[528 byte] By [MstrOfPpptsa] at [2007-11-27 5:34:57]
# 1
Rather than a whole lot of variables, put the fields in an array.
sjasjaa at 2007-7-12 15:03:29 > top of Java-index,Java Essentials,Java Programming...