Your reference to labelTxtFields is set the last instantiated JTextField in the loop, so clearing that alone will only clear the last JTextField. To clear them all, you could keep an array holding...