Redo « Button « Java Swing Q&A





1. Do multiple-step enabled Undo/Redo JButton on toolsbar?    coderanch.com

Depends on what you are going to need to undo/redo. If its text, you could just store some copys of the complete text based on some *text changed* criterion. Then if they hit undo, you replace what's there(or cache it for redo) with the last copy you have. The number of undo/redos would only be limited to how many copies of ...