About undo and redo

Hi everybody,

Iam developing a drawing tool in java where I draw figures on a JPanel.

I like to undo and redo some changes which I do on the JPanel.

I read that the undo class in swing is used only for editable/noneditable texts.

Does any class in Java help us to achieve this end?

[327 byte] By [an_balaji] at [2007-9-26 2:45:21]
# 1
Have you got the Design Patterns book (Gamma et al.)?You want the Command pattern.
mattbunch at 2007-6-29 10:26:58 > top of Java-index,Archived Forums,Java Programming...