1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-11-13 07:33:44 +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"));
File file = chooser.showOpenDialog(root.getScene().getWindow());
if (file == null) return;
List<TestItem> aux = TestItem.loadFrom(file, TestItem.COMMA);
List<TestItem> aux = TestItem.loadFrom(file, TestItem.SEMICOLON);
if (aux != null) {
tabPane.getTabs().add(createTableTab(file.getName().substring(0, file.getName().lastIndexOf('.')), aux));
tabPane.getSelectionModel().selectLast();

View file

@ -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;