Home Segments Top Top Previous Next

683: Mainline

In ordinary usage, an event is a state change at an instant in time. In the vernacular of programming, there are two type of events. In this chapter, you learn about events associated with a window, such as mouse clicks and key presses. In Chapter 49, you learn about events associated with variable-value changes.

The word event also refers to an instance of the EventObject class, or to a subclass of that class. Such an instance describes a state change at an instant in time. That is, an event (a Java class instance) describes a event (a state change at an instant of time).