scrollable button sidebar

This commit is contained in:
Mystikfluu 2023-04-02 16:10:24 +02:00
parent 4057fd6cae
commit a54542b565

View File

@ -31,6 +31,7 @@ import javafx.scene.text.Font;
import javafx.scene.text.FontWeight; import javafx.scene.text.FontWeight;
import javafx.stage.FileChooser; import javafx.stage.FileChooser;
import javafx.stage.Stage; import javafx.stage.Stage;
import javafx.scene.control.ScrollPane;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;
import java.awt.*; import java.awt.*;
@ -882,8 +883,12 @@ public class B3
this.currentTab = addNewTab(null); this.currentTab = addNewTab(null);
ScrollPane scrollPane = new ScrollPane();
scrollPane.setContent(this.buttonPane);
scrollPane.setFitToHeight(true);
this.borderPane = new BorderPane(); this.borderPane = new BorderPane();
this.borderPane.setLeft(this.buttonPane); this.borderPane.setLeft(scrollPane);
this.borderPane.setCenter(this.tabPane); this.borderPane.setCenter(this.tabPane);
this.borderPane.setRight(this.treeBorderPane); this.borderPane.setRight(this.treeBorderPane);
this.borderPane.setBottom(this.statusInformation); this.borderPane.setBottom(this.statusInformation);