resizable and movable rectangle
问题 With the following code (thanks to several posts here), I draw a rectangle, that I want to be resizable and movable. Two anchors (the upper left and lower right) do what I want, and the last one (lower middle) moves the rectangle, but the two first anchors do not follow the rectangle. When I make them move, the Listener of them, resizes the rectangle. package application; import javafx.application.Application; import javafx.beans.property.DoubleProperty; import javafx.beans.property