File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.
I agree. Here's the link:
subject: Undo/Redo using SWING
It's not a secret anymore!