previous | start | next

## How can I tell to which value the user has set a `JSlider`?

- Now we have a plan:
  1. Add a change event listener to each slider
  2. When slider is changed, `stateChanged` method is called
  3. Find out the new value of the slider
  4. Recompute color value
  5. Repaint color panel
- Need to get the current value of the slider
- Look at all the methods that start with get; you find:
  `public int getValue()`
  Returns the slider's value.

previous | start | next