JTextField tfA = new JTextField(); tfA.setName("tfB");
Now, What is my text field name? tfA or tfB ?
tfA
tfB
The simple answer to your question is that the field name is tfB. The variable will be tfA.