for (int i = 0; i < len; i++) {
try {
index = i;
// Make the text field get the focus
pauseAWT();
inputText.setText(ctrlValue[i]);
inputText.requestFocus();
assertEquals("Set focus failed.", inputText.getText(),
ctrlValue[i]);
JFCTestHelper.disposeWindow(dialog, this);
okButton.requestFocus();
flushAWT();
// Gernate the report of the test