From ebe97fa49ad0b3eaf713518a7caa3d88afdcffd5 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sun, 12 Jun 2016 00:37:34 +0200 Subject: [PATCH] Fixed Swap button bug --- .../es/kauron/jstudy/controller/TableController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/es/kauron/jstudy/controller/TableController.java b/src/main/java/es/kauron/jstudy/controller/TableController.java index 8030a56..5091089 100644 --- a/src/main/java/es/kauron/jstudy/controller/TableController.java +++ b/src/main/java/es/kauron/jstudy/controller/TableController.java @@ -36,11 +36,11 @@ public class TableController implements Initializable { public void initialize(URL url, ResourceBundle resourceBundle) { answerCol.setCellValueFactory(e -> e.getValue().answerProperty()); questionCol.setCellValueFactory(e -> e.getValue().questionProperty()); - editButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); - swapButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); - deleteButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); - duplicateButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); - testSelectionButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); +// editButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); +// swapButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); +// deleteButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); +// duplicateButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); +// testSelectionButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0)); } void setData(List list, Controller controller) {