Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| 1. | What layout organizes your nodes horizontally across a Scene? |
| HBox | |
| 2. | True or false? The HBox is located in the javafx.scene.HBox package. |
| False. The HBox is located in the javafx.scene.layout package. | |
| 3. | What property holds the nodes for a layout to organize? |
| content | |
| 4. | True or false? You must be sure to set the x and y coordinates of each node you place in a layout. |
| False. The layout takes care of the x and y coordinates for you. | |
| 5. | Can effects be applied to layouts? |
| Yes. Because layouts inherit from Node, they can use effects. | |
| 6. | What layout organizes nodes vertically down a Scene? |
| VBox | |
| 7. | What is the name given to layouts that are combined to produce a new layout? |
| Nested layouts | |
| 8. | True or false? Fore layouts to be nested, one must inherit from the other. |
| False. One layout simply needs to be added to the other’s content. | |
| 9. | True or false? Only two layouts can be nested. |
| False. Multiple layouts can be nested. | |
| 10. | Name four layouts other than the VBox and HBox. |
| ClipView, Flow, Stack, and Tile |