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
Share this Page URL
Help

CHAPTER 4: Building Dynamic UI Layouts in JavaFX

C H A P T E R   4

Building Dynamic UI Layouts in JavaFX

When I am working on a problem, I never think about beauty. I think only of how to
solve the problem. But when I have finished, if the solution is not beautiful, I know it
is wrong.

—Buckminster Fuller

JavaFX has facilities for creating dynamic layouts that allow you to easily create beautiful-looking user interfaces (UIs) that scale to any resolution and are backed by clean code. At your disposal you have the simple, yet elegant, binding facility; powerful custom layouts built on top of the Pane and Region classes; and the built-in layouts that include HBox, VBox, AnchorPane, BorderPane, FlowPane, TilePane, StackPane, and GridPane.

In this chapter we show how you can leverage these dynamic layout mechanisms to build complicated user interfaces with zero static positioning.


  

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