Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Nested Layouts

One of the more flexible aspects of layouts is that they can be nested. That is to say, you can place layouts within each other. You can create some very useful UIs by combining two or more existing layouts.

In the previous sections you looked at two very specific layouts. The HBox only organizes nodes horizontally across a Scene, whereas a VBox only organizes your nodes vertically down a Scene. The reason JavaFX can offer two otherwise limiting layouts and still be versatile is because these layouts can be nested within each other to create a more dynamic organization of nodes.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint