From 5d539485cf12e22b39cbacafacdb0e12701586bb Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 19 Jun 2017 14:28:27 +0200 Subject: [PATCH] TableController: swap will now refresh the items --- .../java/es/kauron/jstudy/controller/TableController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/es/kauron/jstudy/controller/TableController.java b/src/main/java/es/kauron/jstudy/controller/TableController.java index bd44a6f..6c0f532 100644 --- a/src/main/java/es/kauron/jstudy/controller/TableController.java +++ b/src/main/java/es/kauron/jstudy/controller/TableController.java @@ -130,8 +130,8 @@ public class TableController implements Initializable { if (table.getSelectionModel().getSelectedIndices().size() > 0) saved.set(false); for (TestItem item : table.getSelectionModel().getSelectedItems()) { String question = item.getQuestion(); - item.questionProperty().set(item.getAnswer()); - item.answerProperty().set(question); + item.questionProperty().setValue(item.getAnswer()); + item.answerProperty().setValue(question); } table.requestFocus(); }