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:
- Create a new module called packt.addressbook.ui which contains code to display the address book in a Java FX powered user interface.
- Have the packt.addressbook...