Questions tagged [splitpane]

SplitPane is used to divide two components. The two components are divided based on the look and feel implementation, and they can be resized by the user. If the minimum size of the two components is greater than the size of the split pane, the divider will not allow you to resize it.

91 questions
11
votes
3 answers

JavaFX - SplitPane, resize & proportions

How can I achieve proportional resize of whole SplitPane? public class JfxSplitPaneTest extends Application { @Override public void start(Stage stage) throws Exception { SplitPane split = new SplitPane(); StackPane child1 =…
woky
  • 4,686
  • 9
  • 36
  • 44
9
votes
1 answer

JavaFX 8, how to hide a pane in Splitpane?

I have a splitpane created from FXML that consists of Three panes left to right. I want to be able to hide the rightmost pane but I can't find anything to hide it. If I turn of the visibility it hides the pane content. What I want is to temporarily…
Backtomusic
  • 251
  • 2
  • 5
8
votes
4 answers

JavaFx : Disable Divider

I have a JavaFX application with a SplitPane. I want to disable the Divider on SplitPane, so it would not be possible to change its position when application is running. How can I do this?
mirzak
  • 1,043
  • 4
  • 15
  • 30
7
votes
1 answer

Equivalent of setResizeWeight() on SplitPane in JavaFX?

In Swing, we could use setResizeWeight() on JSplitPane to determine what portion of the SplitPane received the available space. Is there an equivalent method in JavaFX 2.2? I can only find the setDividerPosition() method which doesn't really do what…
Michael Berry
  • 70,193
  • 21
  • 157
  • 216
5
votes
1 answer

JavaFX Improper layouting of SplitPane contents when the content has FlowPane

I am encountering an issue with SplitPane dividers if the content has multiline FlowPane. There is no issue if the FlowPane rendered in one row. If the FlowPane has more than one row then there is a shift in the content part. The more the no of…
Sai Dandem
  • 8,229
  • 11
  • 26
5
votes
1 answer

How to add listeners to SplitPane Divider positions?

I can't figure out how to listen for a "Divider Repositioned" event on a JavaFX 8 SplitPane. Here is a simple working Application that just needs the event listener added. Can someone help point me in the right direction? public class TestCase…
Joe Ernst
  • 508
  • 6
  • 18
5
votes
2 answers

JavaFx ImageView won't resize on fitWidthProperty bind to VBox

I am trying to re-size an image so it fits (scaled) in the space allotted by a SplitPane (for workaround suggestions: this image will change when running the program, it should be generated from the text). The ImageView I'm using currently changes…
user1658374
  • 51
  • 1
  • 3
4
votes
0 answers

error when switching to Java 10

I made a javafx program using a horizontal SplitPane with a Canvas on one side in which something is drawn. When the SplitPane is resized the Canvas resizes with it. Everything worked fine until I switched to Java 10. Suddenly the Canvas-side can…
bronkowitz
  • 131
  • 1
  • 5
4
votes
1 answer

How to add listener to divider position?

Is there a way to add listener whenever I resize my splitpane? I currently have split.getDividers().get(0).positionProperty().addListener(new ChangeListener(){ public void changed(ObservableValue observableValue, Number…
Michael
  • 127
  • 1
  • 7
3
votes
1 answer

Animate splitpane divider

I have a horizontal split pane, and i would like to on button click, change divider position, so that i create sort of "slide" animation. divider would start at 0 (complete left) and on my click it would open till 0.2, when i click again, it would…
ImRaphael
  • 204
  • 3
  • 25
3
votes
1 answer

Angular 2 Material Flex-layout Split Panes

I am stumbling through my first angular 2.4/Angular material application that is using flex-layout. It has one column with three rows that fill the screen. I would like to add a splitter between the bottom two rows and allow the height of each to…
AliWieckowicz
  • 549
  • 1
  • 4
  • 17
3
votes
1 answer

Javafx pickOnBounds setting fails with SplitPane - can't click thru a transparent SplitPane

When I have a transparent SplitPane, setting pickOnBounds=false does not work, I cannot click on a button behind the splitpane. I have a splitPane with a transparent VBox with pickOnBounds=false I also set the splitpane with pickOnBounds=false,…
steve m
  • 31
  • 1
3
votes
0 answers

Does any of javafx extra libs have a such component?

I need a split panel with minimaze feature. Maybe, some extra javafx libs implement this component or It would better to create it by myself? For example what I want Eclipse've already had: ->
mystdeim
  • 4,802
  • 11
  • 49
  • 77
3
votes
3 answers

SplitPane layout issue

This is a cross-post: http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-January/016437.html Sometimes when I'm setting the divider positions of a SplitPane programmatically my value gets overridden again by some JavaFX internal layout…
Puce
  • 37,247
  • 13
  • 80
  • 152
3
votes
2 answers

JavaFX SplitPane Divider Position Inconsistent Behaviour

I have two StackPanes (pane1 & pane2) being displayed in a SplitPane (splitPane). The SplitPane's divider position is set to .3 in the builder. The seond StackPane (pane2) contains a Button which also sets the SplitPane's divider position to…
Phil C
  • 303
  • 2
  • 10
1
2 3 4 5 6 7