From a54542b5656b739399b49d8cffae7b3a0cc0a929 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 2 Apr 2023 16:10:24 +0200 Subject: [PATCH] scrollable button sidebar --- at/fos/ermodel/gui/B3.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/at/fos/ermodel/gui/B3.java b/at/fos/ermodel/gui/B3.java index 73916e0..bcfd55b 100644 --- a/at/fos/ermodel/gui/B3.java +++ b/at/fos/ermodel/gui/B3.java @@ -31,6 +31,7 @@ import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import javafx.stage.FileChooser; import javafx.stage.Stage; +import javafx.scene.control.ScrollPane; import javax.imageio.ImageIO; import java.awt.*; @@ -882,8 +883,12 @@ public class B3 this.currentTab = addNewTab(null); + ScrollPane scrollPane = new ScrollPane(); + scrollPane.setContent(this.buttonPane); + scrollPane.setFitToHeight(true); + this.borderPane = new BorderPane(); - this.borderPane.setLeft(this.buttonPane); + this.borderPane.setLeft(scrollPane); this.borderPane.setCenter(this.tabPane); this.borderPane.setRight(this.treeBorderPane); this.borderPane.setBottom(this.statusInformation);