Task 4: Connect a Slider to the Car Bean
- A slider is in the Swing Controls part of the palette.
- The handler you want to provide is for a Change event.
- The handler should set the car bean's y property to the slider's
value.
- The slider's value can be obtained through its getValue method.