Package javax.swing.undo

Examples of javax.swing.undo.StateEdit.undo()


    p.setName("Rose Rosenholz");
    edit.end();
    harness.check(p.getName(), "Rose Rosenholz");

    // Check #3.
    edit.undo();
    harness.check(p.getName(), "Daniel Dandelion");

    // Check #4.
    edit.redo();
    harness.check(p.getName(), "Rose Rosenholz");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.