if(fileCheckboxes[i].isSelected())
filesToSend.add(flattenedFiles.elementAt(i));
// Starts sending files
ProgressDialog progressDialog = new ProgressDialog(mainFrame, Translator.get("email_dialog.sending"));
SendMailJob mailJob = new SendMailJob(progressDialog, mainFrame, filesToSend, to, subject, body);
progressDialog.start(mailJob);
}
}
// Cancel button
else if (source==cancelButton) {