From 777ef64bc34a3791d76207534458b5d3ace03a5a Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sun, 12 Jun 2016 13:04:01 +0200 Subject: [PATCH] Import from Excel es_ES uses SEMICOLONS --- src/main/java/es/kauron/jstudy/controller/Controller.java | 2 +- src/main/java/es/kauron/jstudy/model/TestItem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/es/kauron/jstudy/controller/Controller.java b/src/main/java/es/kauron/jstudy/controller/Controller.java index c41b4c6..7bd9419 100644 --- a/src/main/java/es/kauron/jstudy/controller/Controller.java +++ b/src/main/java/es/kauron/jstudy/controller/Controller.java @@ -89,7 +89,7 @@ public class Controller implements Initializable { chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Data files (.csv)", "*.csv")); File file = chooser.showOpenDialog(root.getScene().getWindow()); if (file == null) return; - List aux = TestItem.loadFrom(file, TestItem.COMMA); + List aux = TestItem.loadFrom(file, TestItem.SEMICOLON); if (aux != null) { tabPane.getTabs().add(createTableTab(file.getName().substring(0, file.getName().lastIndexOf('.')), aux)); tabPane.getSelectionModel().selectLast(); diff --git a/src/main/java/es/kauron/jstudy/model/TestItem.java b/src/main/java/es/kauron/jstudy/model/TestItem.java index 2383be4..405a301 100644 --- a/src/main/java/es/kauron/jstudy/model/TestItem.java +++ b/src/main/java/es/kauron/jstudy/model/TestItem.java @@ -10,7 +10,7 @@ import java.util.List; import java.util.Scanner; public class TestItem { - public static final String COMMA = ",", COLONS = "::"; + public static final String COMMA = ",", COLONS = "::", SEMICOLON = ";"; private StringProperty question, answer;