February 2014
Beginner
1248 pages
62h 25m
English
Lines 12–26 declare the controller’s instance variables. Variables red, green, blue and alpha store the current values of the redSlider, greenSlider, blueSlider and alphaSlider, respectively. These values are used to update the colorRectangle’s fill color each time the user moves a Slider’s thumb.
Lines 28–65 define method initialize, which initializes the controller after the GUI is created. In this app, initialize configures the property bindings and property listeners.
Read now
Unlock full access