mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 16:33: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"));
|
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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue