This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Undo/Redo using SWING" Watch "Undo/Redo using SWING" New topic

Undo/Redo using SWING

Kama Kurva

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.
subject: Undo/Redo using SWING