PPT Slide
- A type of event-driven programming.
- A type of application that uses graphics.
An applet:
- Waits for the user to do something, e.g.,
- move the mouse
- click the mouse
- press a key
- Processes that event
- Does something based on that event
- the program waits until you press a button,
- the program sees that you pressed a button,
- the program then does something based on the fact that you pressed that button, e.g.,
- clear the screen
- restart a game
Event Driven Programming: Applet Example