posted 17 years ago
I'm trying to implement an undo/redo mechanism in my application, and I want to be able to handle actions which are more complex than text events. For example, I want undo/redo operations (e.g. update, delete, etc.) for custom objects used by my application.
Would it be possible to use the API provided by Swing (UndoManager, etc.) to handle these types of operations or would I need to write something myself? From what I've read so far, it seems like I'll need to do it myself since the API seems to only support text edits. Am I heading down the right track or do I need to use the API? Thanks for any input.