I have a JPanel
that have a lot of JTextFields
and JComboBoxes
and JRadioButtons
, so i want to make them all in the default values in one shot.
I used to empty every field one by one but this take lot of time, and maybe i miss some fields, or some times i can add another fields, so it is not practice at all.
public void empty(){
field1.setText("");
field2.setText("");
field3.setText("");
...
}
So is there any way to make all the fields empty in one shot?
Thank you.