Example: A Color Mixer
- How do you know if there is a slider?
- Buy a book that illustrates all Swing components
- Run sample application included in the JDK that shows off all Swing components
- Look at the names of all of the classes that start with J
- JSlider seems like a good candidate
- Next, ask a few questions:
- How do I construct a JSlider?
- How can I get notified when the user has moved it?
- How can I tell to which value the user has set it?
- After mastering sliders, you can find out how to set tick marks, etc.