Implementing Undo/Redo in JavaFX
问题 I'm trying to implement undo/redo in JavaFX - I draw all my shapes using graphicsContext() . I have looked around and found that there's a save method on Graphics Context but it just saves attributes and not the actual shape/state of the canvas. What would be the best way of going about this? This is one of my code snippets when I create a circle, for instance: public CircleDraw(Canvas canvas, Scene scene, BorderPane borderPane) { this.borderPane = borderPane; this.scene = scene; this