0

I was just wondering if the Form Class in the J2ME polish api for GUI development maintains a list of references to the Items that are appended to it. The Form that I am using has a number of text fields appended to it using the following code.

form.append(new TextField(...)) and then all this goes into a for loop.

How do I refer to these TextFields??

form is a reference to an existing form.

Gabe
  • 84,912
  • 12
  • 139
  • 238
rzlines
  • 1,417
  • 3
  • 14
  • 21

1 Answers1

2

In case anyone is interested ... the answer is yes.

You can use the Form get( int itemNum ) method to retrieve the Item appended at position itemNum.

The size() method will tell you how many items have been appended for the Form.

martin clayton
  • 76,436
  • 32
  • 213
  • 198