Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Undo/Redo using SWING  RSS feed

Kama Kurva
Posts: 1
  • 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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!