From 4b57c7f67b2a2ab91b64a75cebe4ab9d4c05b17a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 31 Jul 2017 22:34:49 -0700 Subject: [PATCH] Enable cell selection to later allow for data copying. --- src/main/java/org/nwapw/abacus/fx/AbacusController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/nwapw/abacus/fx/AbacusController.java b/src/main/java/org/nwapw/abacus/fx/AbacusController.java index e1d141e..06cbae5 100644 --- a/src/main/java/org/nwapw/abacus/fx/AbacusController.java +++ b/src/main/java/org/nwapw/abacus/fx/AbacusController.java @@ -41,6 +41,7 @@ public class AbacusController { abacus = new Abacus(); historyData = FXCollections.observableArrayList(); historyTable.setItems(historyData); + historyTable.getSelectionModel().setCellSelectionEnabled(true); inputColumn.setCellValueFactory(cell -> cell.getValue().inputProperty()); parsedColumn.setCellValueFactory(cell -> cell.getValue().parsedProperty()); outputColumn.setCellValueFactory(cell -> cell.getValue().outputProperty());