* @return Component instance or null if component was not found.
*/
protected static JDialog waitJDialog(Window owner, ComponentChooser chooser, int index,
Timeouts timeouts, TestOut output) {
try {
DialogWaiter waiter = new DialogWaiter();
waiter.setTimeouts(timeouts);
waiter.setOutput(output);
return((JDialog)waiter.
waitDialog(owner, new JDialogFinder(chooser), index));
} catch(InterruptedException e) {
JemmyProperties.getCurrentOutput().printStackTrace(e);
return(null);
}