Posted By:
Dermot_Hennessy
Posted On:
Monday, August 27, 2001 03:59 AM
Call
instanceof for each field and for each field (I presume you are representing them as java.lang.Objects) that is a JTextField, cast to a JTextField and call the method in the standard way. Pseudo code:
Object[] theFields = panel.getFields();
//getFields() is pseudocode
for (int i = 0; i{
if (theFields[i] instanceof JTextField)
((JTextField)theFields[i]).setText("");
}
Dermot