nvcnvn
nvcnvn

Reputation: 5175

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!

Upvotes: 5

Views: 1356

Answers (1)

jewelsea
jewelsea

Reputation: 159341

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.

Upvotes: 4

Related Questions