title: Java- How to add more textfields by clicking a button?
body: <p>I have created a <code>frame</code> in Java which has some <code>textfields and buttons</code> in it. Assuming that user wants more textfields (for example to add more data), I want to put a <code>button</code> and when a user clicks <code>the button</code>, then a new <code>textfield</code> should appear. then user can fill data in it and again by clicking that <code>button</code> another <code>textfield</code> should appear.
  How can I do this ? What code I need to write for the button to show more and more text fields by clicking button? 
  Thank you !</p>