Constructor
The constructor (lines 17–29) configures the instance variables we use to build the custom presentation. Line 18 indicates that the VBox
’s children should be centered. Lines 20–22 configure the ImageView
and attach it to the VBox
’s collection of children. Line 20 indicates that the ImageView
should preserve ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.