From 7159d5a92b4ae00a2ce5598fe0cb31c1ec25d983 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 13 Jun 2016 10:43:23 +0200 Subject: [PATCH] Test: always show feedback and borderpane --- .../jstudy/controller/TestController.java | 3 - .../es/kauron/jstudy/view/settings.fxml | 4 +- .../resources/es/kauron/jstudy/view/test.fxml | 64 +++++++++---------- 3 files changed, 30 insertions(+), 41 deletions(-) diff --git a/src/main/java/es/kauron/jstudy/controller/TestController.java b/src/main/java/es/kauron/jstudy/controller/TestController.java index c5c7491..accae3e 100644 --- a/src/main/java/es/kauron/jstudy/controller/TestController.java +++ b/src/main/java/es/kauron/jstudy/controller/TestController.java @@ -31,7 +31,6 @@ public class TestController implements Initializable { @Override public void initialize(URL url, ResourceBundle resourceBundle) { - feedback.setVisible(false); } void setList(List list) { @@ -74,9 +73,7 @@ public class TestController implements Initializable { @FXML private void onSkipAction(ActionEvent event) { - feedback.setVisible(AppConfig.showFeedback); answer.setText(""); - if (current == -1) feedback.setVisible(false); int previous = current; while (list.size() > 1 && current == previous) current = (int) (Math.random() * list.size()); diff --git a/src/main/resources/es/kauron/jstudy/view/settings.fxml b/src/main/resources/es/kauron/jstudy/view/settings.fxml index 95398c0..a0f191c 100644 --- a/src/main/resources/es/kauron/jstudy/view/settings.fxml +++ b/src/main/resources/es/kauron/jstudy/view/settings.fxml @@ -3,12 +3,10 @@ - - - + diff --git a/src/main/resources/es/kauron/jstudy/view/test.fxml b/src/main/resources/es/kauron/jstudy/view/test.fxml index e0a0937..6c791a2 100644 --- a/src/main/resources/es/kauron/jstudy/view/test.fxml +++ b/src/main/resources/es/kauron/jstudy/view/test.fxml @@ -1,30 +1,14 @@ + - - - - - - - - - + + - - - - - - - - - - - - - + +
+ + + + - - -
+ + + + + -
- - - -
+ + + + +