What happens next?
You learned in an earlier lecture that if the values stored in any of the
three text fields changes for any reason,
- DocumentListener
objects registered on the three text fields
- cause the color of the swatch to change
- to
match the new values of the color components.
Thus, the color that is chosen by the user from the color chooser
- modifies
the values in the text fields
- causing the color of the swatch in the GUI to
match the chosen color.