File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Undo/Redo using SWING

 
Kama Kurva
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic