From cb27488507c488ffcf2d159854a8297c20b77aeb Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Thu, 8 Dec 2016 22:37:08 +0100 Subject: [PATCH] TestController: changed JFXTextField to TextField (the former gave utf-8 related input errors) --- .../java/es/kauron/jstudy/controller/TestController.java | 4 ++-- src/main/resources/es/kauron/jstudy/view/test.fxml | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/es/kauron/jstudy/controller/TestController.java b/src/main/java/es/kauron/jstudy/controller/TestController.java index accae3e..43ef6c9 100644 --- a/src/main/java/es/kauron/jstudy/controller/TestController.java +++ b/src/main/java/es/kauron/jstudy/controller/TestController.java @@ -1,6 +1,5 @@ package es.kauron.jstudy.controller; -import com.jfoenix.controls.JFXTextField; import es.kauron.jstudy.model.AppConfig; import es.kauron.jstudy.model.TestItem; import javafx.event.ActionEvent; @@ -9,6 +8,7 @@ import javafx.fxml.Initializable; import javafx.geometry.Insets; import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; +import javafx.scene.control.TextField; import javafx.scene.layout.HBox; import java.net.URL; @@ -19,7 +19,7 @@ public class TestController implements Initializable { @FXML private Label question, prevQuestion, prevAnswer, correctAnswer, progressLabel, correctLabel; @FXML - private JFXTextField answer; + private TextField answer; @FXML private ProgressBar progress; @FXML diff --git a/src/main/resources/es/kauron/jstudy/view/test.fxml b/src/main/resources/es/kauron/jstudy/view/test.fxml index 6c791a2..edc9527 100644 --- a/src/main/resources/es/kauron/jstudy/view/test.fxml +++ b/src/main/resources/es/kauron/jstudy/view/test.fxml @@ -1,7 +1,5 @@ - - @@ -15,11 +13,11 @@ - + - +