go to previous page   go to home page   go to next page highlighting

Answer:

How are the objects in an HBox arranged?

Shapes added to an HBox are arranged into a single horizontal row in the order they were added. The tops of the shapes touch the top border of the HBox

What size is picked for an HBox?

The size of the HBox is the smallest box that encloses all the shapes (the bounding box.)

HBox and VBox

HBox and VBox lay out their children in a single line, either horizontal or vertical, in the order they are added.

These and other Panes have many features, such as margins and spacing between nodes. There are other kinds of Panes that perform different kinds of layout.

Layout Panes are very useful for designing graphical user interfaces (GUIs). See a future chapter for this.

Oracle Documentation for HBox

Oracle Documentation for VBox


QUESTION 19:

(Thought Question: ) Could a VBox containing several Nodes be one of several Nodes added to an HBox?


go to previous page   go to home page   go to next page