aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Undo/Redo using SWING Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Undo/Redo using SWING" Watch "Undo/Redo using SWING" New topic
Author

Undo/Redo using SWING

Kama Kurva
Greenhorn

Joined: Apr 21, 2004
Posts: 1
Hello all !
its pretty easy to understand that the Undo/redo capability (UndoableEdit, UndoableEditListener) being used.
my question is: since we encapsulate in a subclass of AbstractUndoableEdit all the edits that we want to support. Are Objects that have inherent methods to, for example insertElements and then removeElements the only kinds that can be done easily, the other road being hardcoding a subclass to Undo a graphic.
here is where the problem arises:how does one deal with intersects of these graphics etc ?
i have been able to undo/redo texts but when i came across graphics is when i was stuck.
any guidance is appreciated.
-i18n
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Undo/Redo using SWING
 
Similar Threads
About Command Pattern Design attern
How to implment Undo/Redo for a editor
Urgent: Oracle Database 9i
How to add Undo and Redo actions to JPanel
maintain action history of drag and drop in jtree