I wish to know if there is a component in JavaFX that can be re-sized by dragging its edges. I am in the process of coding for a resizeable rectangle so any help in this regard would be appreciated.
Asked
Active
Viewed 96 times
1 Answers
2
There is no built-in component in JavaFX which includes resizing by edge dragging.
SplitPane would be the closest thing but is probably not what you want.
You probably want to have component resizing like the SceneBuilder application where you have manual resizing anchors you can drag to resize the component (like in this SceneBuilder screen shot below):
SceneBuilder source is online, so you could look through it and determine how they set up their resizing controls for components.
If you continue to write your own implementation to manage manual resizing, perhaps the draggable anchor logic from the answer to CubicCurve JavaFX may be useful.