26.4.3 Building the GUI
In this section, we’ll discuss the Painter app’s GUI. Rather than providing the exact steps as we did in Chapter 25, we’ll provide general instructions for building the GUI and focus on specific details for new concepts. As you build the GUI, recall that it’s often easier to manipulate layouts and controls via Scene Builder’s Document window than directly in the stage design area.
fx:id Property Values for This App’s Controls
Figure 26.4 shows the fx:id properties of the Painter app’s programmatically manipulated controls. As you build the GUI, you should set the corresponding fx:id properties in the FXML document, as we discussed in Chapter 25.
Get Java™ How To Program (Early Objects), Tenth 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.