| Program: | Joker.java | (follow link to view applet and code) |
| Author: | Cory Goldfuss | |
| Date: | December 1, 2000 | Program last modified: January 23, 2001 |
| Description: | Program shows use of threads by tricking the user. | |
| Components: | Methods, ActionEvents, Lists, Radio Buttons, Runnable, Symantec Image Viewer. | |
| New Concepts: | Using Threads for delays. | |
| Reflections: | I started this program almost two months ago only to find that I didn't know how to make the applet "sleep" when I wanted it to. Using threads has allowed me to implement this delay feature and allow me to insert pauses between actions. The main purpose of this in this applet is to give the user the idea that the applet is actually performing hard calculations, when in fact it's not breaking a sweat. Something interesting to note is after shuffle has been clicked and the thread is running, nothing else can take place in the applet. This is probably becuase I did not use any yield statements to allow the other processes to run. All in all this program was very interesting for me. | |
| Evaluation: | Please provide an evaluation of this portfolio entry. | |