group layout designing dynamically

I am designing a layout using Group layout method, I want to add components dynamically, i.e if a user wants to add 5 JTextfields and labels for each then all components should be placed in an aligned way.
I am able to take inputs from user and place them on panel but the problem is with alignment.
specifically- only Group layout method is to be used.