I use UndoFX for the undo and redo functions to a rectangle shape.
So far it is working fine for position, size and rotation, except the fillProperty
color of the shape.
The problem is that i can't bind my shape with the ColorPicker
component, i get infinite exceptions:
Rectangle.fill: A bound value cannot be set.
How can i use both undofx functions and binding?
colorField.valueProperty().setValue((Color) (currentSelected.getRect().fillProperty().getValue()));
currentSelected.getRect().fillProperty().bind(colorField.valueProperty());
previousSelected.getRect().fillProperty().unbind();