CHAPTER 10

image

Understanding Layout Panes

In this chapter, you will learn:

  • What a layout pane is
  • Classes in JavaFX representing layout panes
  • How to add children to layout panes
  • Utility classes such as Insets, HPos, VPos, Side, Priority, etc.
  • How to use a Group to layout nodes
  • How to work with Regions and its properties
  • How to use different types of layout panes such as HBox, VBox, FlowPane, BorderPane, StackPane, TilePane, GridPane, AnchorPane, and TextFlow

What Is a Layout Pane?

You can use two types of layouts to arrange nodes in a scene graph:

  • Static layout
  • Dynamic layout

In a static layout, the position and size of nodes are calculated once, and ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 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.