From ab54a83e5fe8349faba5451908041429f3d84ff1 Mon Sep 17 00:00:00 2001 From: ddunig2 <36016544+ddunig2@users.noreply.github.com> Date: Fri, 27 Dec 2019 22:00:05 -0500 Subject: [PATCH 1/2] Update open OpenOfficePanel to show buttons in three rows of three. --- .../org/jabref/gui/openoffice/OpenOfficePanel.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java b/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java index e790ce3c4db..9725e044976 100644 --- a/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java +++ b/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java @@ -270,8 +270,18 @@ private void initPanel() { hbox.getChildren().addAll(connect, manualConnect, selectDocument, update, help); hbox.getChildren().forEach(btn -> HBox.setHgrow(btn, Priority.ALWAYS)); + VBox row1 = new VBox(); + VBox row2 = new VBox(); + VBox row3 = new VBox(); + row1.getChildren().addAll(setStyleFile,pushEntries, pushEntriesInt); + row2.getChildren().addAll(pushEntriesAdvanced, pushEntriesEmpty, merge); + row3.getChildren().addAll(manageCitations, exportCitations, settingsB); + HBox hbox1 = new HBox(); + hbox1.getChildren().addAll(row1,row2,row3); + hbox1.getChildren().forEach(btn -> HBox.setHgrow(btn, Priority.ALWAYS)); + vbox.setFillWidth(true); - vbox.getChildren().addAll(hbox, setStyleFile, pushEntries, pushEntriesInt, pushEntriesAdvanced, pushEntriesEmpty, merge, manageCitations, exportCitations, settingsB); + vbox.getChildren().addAll(hbox, hbox1); } private void exportEntries() { @@ -435,7 +445,7 @@ private List findOpenOfficeJars(Path configurationPath) throws IOException jarURLs.add((jarPath.get().toUri().toURL())); } return jarURLs; - + } private OOBibBase createBibBase(List jarUrls) throws IOException, InvocationTargetException, IllegalAccessException, From ed7e9e5f789c72c7390e7d9b4c3294be09e4279a Mon Sep 17 00:00:00 2001 From: Lugduni Desrosiers <36016544+ddunig2@users.noreply.github.com> Date: Wed, 5 Feb 2020 13:47:29 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c3f7a0351f..87237229a97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# ## [Unreleased] ### Changed +- we changed the open office panel to show buttons in rows of three instead of going straight down to save space as the button expanded out to take up unnecessary horizontal space [#5479] (https://github.com/JabRef/jabref/issues/5479) ### Fixed