Skip to content

Commit

Permalink
Moved Add group button between Groups title and filter search field
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrisdimos00 committed Jan 24, 2022
1 parent ff47dae commit aed87f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/jabref/gui/groups/GroupTreeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand All @@ -137,7 +137,7 @@ private void createNodes() {

HBox groupBar = new HBox(addNewGroup);
groupBar.setId("groupBar");
this.setBottom(groupBar);
this.setTop(groupBar);
}

private void initialize() {
Expand Down

0 comments on commit aed87f9

Please sign in to comment.