The Command Pattern
Here is a quick example of working with the Command Pattern. I made this application related to a box being draggable and scalable, and able to update its color. For each of those commands, we keep a stack in order to do and undo them. download, and preview souce code Drag the box, use slider [...]