if ( actionCommand.equals("Apply") )
{
boolean success = true;
for (int count=0;count<_tabPane.getTabCount();count++)
{
ATFSettingsPanel panel = (ATFSettingsPanel)_tabPane.getComponentAt(count);
success &= panel.validateSettings();
}
if ( success )
{
for (int count=0;count<_tabPane.getTabCount();count++)
{
ATFSettingsPanel panel = (ATFSettingsPanel)_tabPane.getComponentAt(count);
panel.settingsConfirmed();
}
dispose();
}
}
else
if ( actionCommand.equals("Cancel") )
{
for (int count=0;count<_tabPane.getTabCount();count++)
{
ATFSettingsPanel panel = (ATFSettingsPanel)_tabPane.getComponentAt(count);
panel.settingsAborted();
}
dispose();
}
}