Loading...
Uploaded by Mazyod on Sep 18, 2011
So, in this extension, we add an undo button to the drawing application that we built ..Thanks to Ali1471986 for suggesting that we make this tutorial !
Education
Creative Commons Attribution license (reuse allowed)
@pakistanzeinab Yeah, I wasn't prepared, as I said :P
And I wanted to have fun and show people how it can be hard to make a simple modification to a code that you haven't worked on for a while .. because you lost the familiarity
Mazyod 1 month ago
Hmm you took quite a while to explain such an easy thing no offense
This is all I did
public void undo() { int index = shapes.size() - 1; shapes.remove(index);
} and of course repainting in actionPerformed
pakistanzeinab 1 month ago
@MrMoodyKSA You got me wondering .. Who would ever like this video ... Then I realized.
Mazyod 5 months ago
I PRESSED LIKE BECAUSE I CAN D;
MrMoodyKSA 5 months ago
Load more suggestions
@pakistanzeinab Yeah, I wasn't prepared, as I said :P
And I wanted to have fun and show people how it can be hard to make a simple modification to a code that you haven't worked on for a while .. because you lost the familiarity
Mazyod 1 month ago
Hmm you took quite a while to explain such an easy thing no offense
This is all I did
public void undo() { int index = shapes.size() - 1; shapes.remove(index);
} and of course repainting in actionPerformed
pakistanzeinab 1 month ago
@MrMoodyKSA You got me wondering .. Who would ever like this video ... Then I realized.
Mazyod 5 months ago
I PRESSED LIKE BECAUSE I CAN D;
MrMoodyKSA 5 months ago