openExistinLbl.setSelected(false);
}//GEN-LAST:event_manualEntryLblActionPerformed
private void nextBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextBtnActionPerformed
data = new Data();
DataManager dm = new DataManager(data);
try {
if (openExistinLbl.isSelected()) {
if (filePath == null) {
throw new Exception("No File was Selected");
}
dm.importData(filePath);
data = dm.getData();
mainForm.setProjectPath(filePath);
mainForm.changeTilte(filePath);
finishDlg.setPreviousDialog(this);
finishDlg.setMainForm(mainForm);
this.setVisible(false);
finishDlg.setVisible(true);
}
else {
if (importExisitingLbl.isSelected()) {
if (filePath == null) {
throw new Exception("No File Was Selected");
}
dm.importData(filePath);
data = dm.getData();
}
this.setVisible(false);
saveNfinDlg.setMainForm(mainForm);