I want to have a Form that can Add or Delete TextFields.
I was so far creating an array and resizing (actually copying original array to a new, larger array), then deleting all form elements, and adding everything again + this new array of TextFields
but I think this will slow down the program when there are many TextFields
Adding TextFileds to the Vector is not working. When it is about to add TextField to the Form,
form.append(vector.elementAt(i));
it says that the element is not it.
method Form.append(Item) is not applicable
(actual argument Object cannot be converted to Item by method invocation conversion)
method Form.append(Image) is not applicable
(actual argument Object cannot be converted to Image by method invocation conversion)
method Form.append(String) is not applicable
(actual argument Object cannot be converted to String by method invocation conversion)
Should I countinue with resizing arrays, or is there a better way?