Calendar begin = new GregorianCalendar(fromYear, fromMonth - 1,
fromDay);
Calendar end = new GregorianCalendar(toYear, toMonth - 1, toDay);
try {
final YahooDownload loader = new YahooDownload();
if (end.getTimeInMillis() < begin.getTimeInMillis()) {
EncogWorkBench.displayError("Dates",
"Ending date should not be before begin date.");
return;
}
File targetFile = new File(EncogWorkBench.getInstance()
.getProjectDirectory(), name);
EncogWorkBench.getInstance().getMainWindow().beginWait();
loader.loadAllData(dialog.getTicker().getValue(),
targetFile, CSVFormat.ENGLISH,
begin.getTime(), end.getTime());
} catch (QuantError e) {
EncogWorkBench.displayError("Ticker Symbol",