Problem with scene object

How do I have button that creates a new textField, inserts it into a table, and also positions it below the previous textField?

I am a bit confused on how that would work. Are there any examples similar to this that I could use?