The slider fires a series of ChangeEvents
Listing 8 begins the definition of the event handler method named stateChanged,