javajavafxjavafx-8splitpane

JavaFX: hide fixed pane with slider in SplitPane


I have a GridPane in a SplitPane.

I don't want to resize GridPane when I slide,

but I want to be able to hide it.

If GridPane has fixed size, slider doesn't move. Also, setting Resizable With Parent false didn't help.

How can I achieve this? Thank you.


Solution

  • You could put you your gridpane inside a scrollPane then when it resizes it should only affect the scroll pane