I\'ve created an XML editor and I\'m stuck at the last phase: adding undo/redo functionality.
I\'ve only got to add undo/redo for when users add elements, attributes
This tutorial explains the fundamental of the Command Pattern and the undo/redo mechanism for Swing. Hope it helps.