1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-12-23 00:43:32 +01:00

Import from Excel es_ES uses SEMICOLONS

This commit is contained in:
Carlos Galindo 2016-06-12 13:04:01 +02:00
parent 56575f6a1e
commit 777ef64bc3
Signed by: kauron
GPG key ID: 83E68706DEE119A3
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ public class Controller implements Initializable {
chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Data files (.csv)", "*.csv")); chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("Data files (.csv)", "*.csv"));
File file = chooser.showOpenDialog(root.getScene().getWindow()); File file = chooser.showOpenDialog(root.getScene().getWindow());
if (file == null) return; if (file == null) return;
List<TestItem> aux = TestItem.loadFrom(file, TestItem.COMMA); List<TestItem> aux = TestItem.loadFrom(file, TestItem.SEMICOLON);
if (aux != null) { if (aux != null) {
tabPane.getTabs().add(createTableTab(file.getName().substring(0, file.getName().lastIndexOf('.')), aux)); tabPane.getTabs().add(createTableTab(file.getName().substring(0, file.getName().lastIndexOf('.')), aux));
tabPane.getSelectionModel().selectLast(); tabPane.getSelectionModel().selectLast();

View file

@ -10,7 +10,7 @@ import java.util.List;
import java.util.Scanner; import java.util.Scanner;
public class TestItem { public class TestItem {
public static final String COMMA = ",", COLONS = "::"; public static final String COMMA = ",", COLONS = "::", SEMICOLON = ";";
private StringProperty question, answer; private StringProperty question, answer;