I’m developing Java application using NetBeans. I have 5 JTextFields and 2 JTextArea in JFrame. I want to clear them at once using a loop. How can it be done?
I’m developing Java application using NetBeans. I have 5 JTextFields and 2 JTextArea in
Share
Iterate over all of the components and set the text of all
JTextFieldandJTextAreaobjects to an empty String: