February 2014
Beginner
1248 pages
62h 25m
English
Each JavaFX control has a setUserData method that receives an Object. You can use this to store any object you’d like to associate with that control. For the drawing color RadioButtons, we store the specific Color that the RadioButton represents. For the pen size RadioButtons, we store an enum constant for the corresponding pen size. We then use these objects when handling the RadioButton events.
Read now
Unlock full access