From a6f50a7cab0b8f2c0bc27e91439352fe2d17c0cb Mon Sep 17 00:00:00 2001 From: Caleb Hulbert Date: Fri, 25 Aug 2023 15:11:29 -0400 Subject: [PATCH] feat: select all by default --- .../paintera/ui/source/mesh/SegmentMeshExporterDialog.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/janelia/saalfeldlab/paintera/ui/source/mesh/SegmentMeshExporterDialog.java b/src/main/java/org/janelia/saalfeldlab/paintera/ui/source/mesh/SegmentMeshExporterDialog.java index 3b4915bcc..5740906f4 100644 --- a/src/main/java/org/janelia/saalfeldlab/paintera/ui/source/mesh/SegmentMeshExporterDialog.java +++ b/src/main/java/org/janelia/saalfeldlab/paintera/ui/source/mesh/SegmentMeshExporterDialog.java @@ -191,8 +191,9 @@ private void createMultiIdsDialog(final ObservableList ids) { int row = createCommonDialog(contents); checkListView.setItems(ids); - checkListView.prefHeightProperty() - .bind(Bindings.size(checkListView.itemsProperty().get()).multiply(LIST_CELL_HEIGHT)); + checkListView.getSelectionModel().selectAll(); + selectAll.setSelected(true); + checkListView.prefHeightProperty().bind(Bindings.size(checkListView.itemsProperty().get()).multiply(LIST_CELL_HEIGHT)); final Button button = new Button("Browse"); button.setOnAction(event -> {