RedoUndo « Swing « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Swing » RedoUndo 
1. Add an undo/redo function to your Java apps with Swing
Author:Tomer Meshorer
URL:http://www.javaworld.com/javaworld/jw-06-1998/jw-06-undoredo.html
Summary: Users make mistakes, and as developers it's important that we help them recover gracefully from mistakes by including support for undo in our user interfaces. The new undo/redo mechanism available in Swing allows us to do just that. This article describes how to add undo/redo capabilities to Java applications. It explains the design of an undo/redo mechanism by introducing the Command pattern and Swing's support for the pattern. In addition, the author provides an overview of Swing's undo mechanism and a sample applet that demonstrates the concept. (3,000 words)


w__ww__.___j__av_a___2s.__c_o__m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.