I want to build a javafx application, that consists of 3 big columns about the whole scene. The columns should be resizable, so i used splitpane. I added 3 borderpanes to the splitpane, every with the same preferred width (The scene is overall 3840 width, so each column is 1280 width). But when i start the application, the middle borderpane is smaller then the two other. It is not scaled on 1280 width.
So how can i manage that the splitpane is not scaling the borderpanes and use the preferred width?
Update: I have found a good solution, that makes the solution from user3249346 dynamic. After adding or deleting a column you can call this:
ObservableList<SplitPane.Divider> dividers = splitPane.getDividers();
for (int i = 0; i < dividers.size(); i++) {
dividers.get(i).setPosition((i + 1.0) / 3);
}