Adding UI with Java FX

Let's now create a UI application that allows us to click and browse contact information. We will be using the Java FX APIs to create and display the UI. As in the last section, I should highlight that the focus here is not for us to learn the JavaFX API itself. In fact, I'll be glossing over most of the Java FX API details in this section because that's beyond the scope of this book, although the full working code is available for you to peruse if you are interested. The intention of this exercise is for us to learn how to use Java APIs and how to handle the different usage scenarios and nuances that come with it.

Here's what we'll do to add UI to the address book application:

  1. Create a new module called packt.addressbook.ui which contains code to display the address book in a Java FX powered user interface.
  2. Have the packt.addressbook.ui module depend on packt.contacts to get the list of Contact instances. Also have the module depend on packt.sortutil to sort the Contact instances by last name.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.176.88