1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-23 07:50:09 -08:00

Enable cell selection to later allow for data copying.

This commit is contained in:
Danila Fedorin 2017-07-31 22:34:49 -07:00
parent 02b87bfae4
commit 4b57c7f67b

View File

@ -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());