Edited Session Message as Importer Error messages

main
YaFedImYaEatIm 9 years ago
parent 03bac3b6dd
commit cbfe40a8fd

@ -130,7 +130,7 @@ public class App extends Application
fileIn.close();
}catch(IOException e){
session = new Session();
e.printStackTrace();
System.out.println("New Session File Created");
}catch(ClassNotFoundException e){
System.out.println("Missing Session Class");
System.exit(1);

@ -26,6 +26,7 @@ public class Importer{
"Text & .csv", "*.txt", "*.csv");
chooser.getExtensionFilters().add(filter);
File file = chooser.showOpenDialog(primaryStage);
if (file != null) {
if (scene == SceneCode.AIRLINE_RAW_DATA) {
try {
showSuccessAlert(parent.getCurrentDataset().importAirline(file.getPath()));
@ -51,7 +52,7 @@ public class Importer{
e.printStackTrace();
}
}
}
}
public void showSuccessAlert(String message){

Loading…
Cancel
Save