I don't know if I have well understood your question so this might be a wild guess.
If you want to have all your text boxes fields concatenated value, You need to have a set that can hold all of their references and your main solution should be JAVA Collections API.
You need to store all of your JTextField objects references in a Collection (each time you construct a new one add it to the Collection), can be a List, Map or a Set, then iterate over that Collection once it is filled and build your concatenated String using their values (I would suggest to use a StringBuilder that the way you actually do it):
// Initialize your Collection, will be an ArrayList for this e.g.
List<JTextField> textFields = new ArrayList<JTextField>;
// Instantiation example, it should be done for all fields
JTextField txt0 = new JTextField(20);
textFields.add(txt0);
// Do the same for txt1, txt2 ...
// Iterate over your List to get the concatenated String
StringBuilder sBuilder = new StringBuilder();
for(JTextField textField : textFields){
sBuilder.append(textField.getText());
}
// Print your final value
System.out.print(sBuilder.toString());