Click to See Complete Forum and Search --> : how to make undo/redo


rajaraj
October 1st, 2000, 10:56 AM
please tell me how to make undo/redo in swing for jtextarea.
providing sample code will be appreciated

unicman
October 1st, 2000, 03:38 PM
Well... I don't have sample code you asking for.

But you can have undo/redo feature in JTextArea.
See JDK1.3 documentation's javax.swing.JTextComponent. There is a link saying 'General rules...'.

The example is actually for showing styled text... but they have sample code which implements undo/redo.

Hope it helps.

- UnicMan
http://members.tripod.com/unicman