Hello,
Can Swing components be generated dynamically at run time? A simple example would be, a mouse-click inside a Text Field would draw a new Text Field. Again, a mouse-click inside this new Text Field would draw a new Text Field again. There is no limit on number of created Text Fields.
Here they describe how to replace or hide a component but that means that number of components is know during coding (look for Runtime Changes to Your GUI):
http://java.sun.com/docs/books/tutorial/uiswing/layout/group.html
Thank you.