Is there any way of creating JTextFields in a loop ie.
Int i = 1
String code = "Code" + i
JTextField code = new JTextField();
So if this was in a loop and i was incremented each time I would end up with Text Fields called code1..code2..code3 ect, but suprise suprise it does not work, does anyone have any ideas.
Thanks
Int i = 1
String code = "Code" + i
JTextField code = new JTextField();
So if this was in a loop and i was incremented each time I would end up with Text Fields called code1..code2..code3 ect, but suprise suprise it does not work, does anyone have any ideas.
Thanks