Jayesh A Lalwani wrote:You can implement any design pattern using core Java. SInce, you can use core Java in Swing, you can use any design pattern in Swing.
So, you know what's the Memento Design pattern?
Yes, Jayesh I know about the Memento Design Pattern. It can be used to rollback a state . For e.g. redo/undo an operation.
But I am unsure about it's implementation, like shall I save all the object's state whenever any minute change occurs? How do I save the state, shall I save the object for the same or maintain a log for the changes?