mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 08:23:33 +01:00
Import from Excel es_ES uses SEMICOLONS
This commit is contained in:
parent
56575f6a1e
commit
777ef64bc3
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue