About 3,420,000 results
Open links in new tab
  1. java - Implementing Undo/Redo methods using Stacks - Stack Overflow

    Nov 3, 2016 · Implementing undo/redo is typically done by using one of the following approaches. Which one you should use depends on your desired undo/redo behavior. Undo/redo using the …

  2. How do I implement a simple undo/redo for actions in java?

    TL;DR: You can support undo and redo actions by implementing the Command (p.233) and Memento (p.283) patterns (Design Patterns - Gamma et. al). The Memento Pattern This …

  3. Java - Using multiple stacks to allow an 'undo' method

    Nov 7, 2011 · There is design pattern to do undo and redo. The command design pattern. It involes . public interface ICommand{ void execute(); void undo(); void redo(); } implement the …

  4. How to Implement Simple Undo/Redo Functionality in Java?

    Implementing undo and redo functionality in Java can enhance user experience in applications by allowing users to reverse and restore actions with ease. This can be accomplished using the …

  5. Understanding Stack for Undo/Redo Using Java

    Jul 13, 2017 · When I perform an add or delete command, the redo stack is to be empty. What I don't understand is how to push the command and data to be deleted from the list onto the …

  6. Stack implementation for Undo/Redo functionality in game

    The whole idea of undo and redo lies around the state of your application (program). The Undo means you want to go immediately previous state of your application; similarly it is the case …

  7. Undo and Redo Action events in Java - Stack Overflow

    Nov 14, 2011 · Usually undo/redo functionality is done by implementing a stack. You can implement your own action stack that keeps track of the previous X actions, which you can …

  8. Managing Document Editing History Using Stacks in Java

    In this lesson, you will learn how to manage a document's editing history using Java's Stack data structure. You'll implement methods to efficiently apply, undo, and redo changes to a …

  9. Undo/Redo Stacks - martinjoo.dev

    Jul 29, 2024 · In this post, I’d like to show you a real-world undo/redo setup with stacks, database queries, APIs, and users. We will imitate some of Trello’s features. At the end of the post, you …

  10. Custom Undo/Redo Solution in Java - Algosome

    Ideally, we'd like a user to be able to undo and redo any action in a queue: a user does something and can undo that action. After an undo, a user can redo said action. If a user performs an …

  11. Some results have been removed
Refresh