I am developing a JavaFX application where the class I developed (extended from javafx.scene.Parent) is created on the fly based on the record that the user clicked on the ListView control.
To be clear about this node, it is not created using a layout tool such as SceneBuilder, it is created at runtime based on user actions.
The constructor for my custom node class creates a VBox and Label and uses the passed coordinates (X, Y) in the constructor method to set its own layout layouts. Then I use a special utility class to drag the node. This new node is then added to the main application panel.
However, I was not able to figure out how I can change these nodes by the user. That is, allow the user to mouse over the corner of the node, hold and drag to resize. An operation that all users are used to, no matter which OS.
Has anyone done something like this in JavaFX? (My searches on the subject only seem to be pulling up objects when automatically resizing, which the parent node does with its child nodes.)
Thank you very much,
Yang.
source share