Basic Event Handling

A program that waits for events is called an event-driven program.

Let's look at the RunLight program from HW4 for a simple example. Whiteboard Picture of Event Handling in RunLight.

What are Events?

Event Types

Action Events:

For Text Components:

For Buttons:

Text Events:

Item Events:

More examples here: downloads/swing
Last Updated - 09/06/2020 01:57:26