From aed87f9cc6ecdb7ed64adf2e2efecba0f597c13a Mon Sep 17 00:00:00 2001 From: dimitrisdimos00 <56233132+dimitrisdimos00@users.noreply.github.com> Date: Mon, 24 Jan 2022 18:51:19 +0200 Subject: [PATCH] Moved Add group button between Groups title and filter search field fixes #8398 --- src/main/java/org/jabref/gui/groups/GroupTreeView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeView.java b/src/main/java/org/jabref/gui/groups/GroupTreeView.java index 54187562858..12c52aa520e 100644 --- a/src/main/java/org/jabref/gui/groups/GroupTreeView.java +++ b/src/main/java/org/jabref/gui/groups/GroupTreeView.java @@ -108,7 +108,7 @@ private void createNodes() { HBox.setHgrow(searchField, Priority.ALWAYS); HBox groupFilterBar = new HBox(searchField); groupFilterBar.setId("groupFilterBar"); - this.setTop(groupFilterBar); + this.setCenter(groupFilterBar); mainColumn = new TreeTableColumn<>(); mainColumn.setId("mainColumn"); @@ -126,7 +126,7 @@ private void createNodes() { groupTree.setId("groupTree"); groupTree.setColumnResizePolicy(TreeTableView.CONSTRAINED_RESIZE_POLICY); groupTree.getColumns().addAll(List.of(mainColumn, numberColumn, expansionNodeColumn)); - this.setCenter(groupTree); + this.setBottom(groupTree); addNewGroup = new Button(Localization.lang("Add group")); addNewGroup.setId("addNewGroup"); @@ -137,7 +137,7 @@ private void createNodes() { HBox groupBar = new HBox(addNewGroup); groupBar.setId("groupBar"); - this.setBottom(groupBar); + this.setTop(groupBar); } private void initialize() {