Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Controls/Layouts of JavaFX allows to use the mouse to resize?

When I say "use the mouse to resize" I mean put the pointer at the edge, click and drag and it will be resize.
Is there any JavaFX control or layout let be do that by default?
Thanks!

like image 628
nvcnvn Avatar asked Oct 05 '22 08:10

nvcnvn


1 Answers

The closest built-in control would be a SplitPane.

A SplitPane only has a horizontal or vertical orientation, so you couldn't arbitrarily resize in both directions unless you placed a vertical split pane inside a horizontal one (or vice versa).

Or you can create your own user resizable Pane by following Alexander Kirov's suggestion.

like image 182
jewelsea Avatar answered Oct 07 '22 23:10

jewelsea