Empty all Fields Swing in one shot
<p>I have a <code>JPanel</code> that have a lot of <code>JTextFields</code> and <code>JComboBoxes</code> and <code>JRadioButtons</code>, so i want to make them all in the default values in one shot.</p>

<p>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.</p>

<pre><code>public void empty(){
   field1.setText("");
   field2.setText("");
   field3.setText("");
   ...
}
</code></pre>

<p>So is there any way to make all the fields empty in <strong>one shot</strong>?</p>

<p>Thank you.</p>