JavaFX is the go-to UI library in the Java ecosystem. This course focuses on how to use controls with the data model; handle large amounts of data from simple to complex use cases from the creation; and use customization until event handling.
At the core of developing desktop applications using JavaFX is a thorough knowledge of controls. In this course, JavaFX Playbook: Controls with Data Model, you will learn how to use the five most complex controls of JavaFX in order to create useful applications. First, you will learn about creating simple dropdowns using a choice box and move on to complex dropdowns with the help of ComboBox. Next, you will explore list view to display a list of items at once and proceed to learn how to create tables that are static as well as editable. Finally, you will discover how to display hierarchical data using a TreeView. When you are finished with this course, you will have a foundational knowledge of creating, styling, and customizing these controls along with how to use StringConverters, PropertyValueFactories, CellFactories, and CellValueFactories to help you create a truly interactive, engaging, and data-centric application using JavaFX platform.
Course Overview Hi everyone. This is Buddha Jyothiprasad. Welcome to my course, JavaFX Playbook: Controls with Data Model. I work as a software developer at Amazon, and my experience has predominantly been in Java and related technologies. This course, JavaFX Playbook: Controls with Data Model, teaches you about some of the complex controls available in JavaFX. The course provides you with all of the fundamental information that you will need to play around with the controls along with techniques that is not taught in basic courses or tutorials. In this course, you're learning about list view, choice box, combo box, table view, and tree view. All of these controls have responsibility of presenting lots of data to the consumer and allowing the consumer to interact with the data. The demos don't just take you through some basic concepts of the controls. The demos do start with very basic concepts and quickly proceed to complex cases like StringConverters, CellFactories, CellValueFactories, PropertyValueFactors, etc that are necessary to accomplish some complex use cases with those controls. Before beginning this course, you should be familiar with Java and basic JavaFX. Knowing a bit about FXML also helps, but I'll try to take you all through some of the basic concepts very quickly. You should be familiar with using an IDE as well. I'll demonstrating lots of code in IntelliJ IDE, but it's not necessary that you use the same. I hope you join me in the course and learn about wonderful world of JavaFX and its controls.
Creating Simple Dropdowns with ChoiceBox Hi. Welcome to another module of the course, JavaFX Playbook: Controls with Data Model. In this module, we will understand how we can create drop-downs using choice boxes. Choice boxes are very similar to combo boxes. They let us create simple drop-downs. I said simple drop-downs because ChoiceBox doesn't give us many options on how we can create choice boxes or how we can manipulate the items. We will begin this course by understanding how we can create ChoiceBox and how we can manipulate the properties of a ChoiceBox. We will then see how to control choice or items of a ChoiceBox or with simple items like strings and the custom classes that we create in our program. We will then understand how we can use string converters, and then we'll also see how we can add separate lines between items in the ChoiceBox. Let's get started.
Creating Complex Dropdown with ComboBox Hi. Welcome to another module of the course, JavaFX Playbook: Controls with Data Models. In this module, we will learn how to use ComboBox. ComboBox is much more complex than ChoiceBox. It provides a lot of customizable options with the help of factories, etc. In this module, we will try to cover as advanced topics as possible in the time limit we have. Let's first see what we are going to cover in this module. We will begin with how to create combo boxes pretty standard one for any control module. And then we will see how to control the options that are present in a ComboBox. We will also see how to make a ComboBox editable, and finally, we will also understand how to use cell factories. By the end of this module, you will be pretty comfortable with all the ways in which you can use the ComboBox creatively.
Displaying a List of Items with ListView Hi. Welcome to another module of the course, JavaFX Playbook: Controls for Data Model. In this module, displaying a list of items with ListView, we will learn how to use a ListView and understand how we can use it in more complex scenarios like displaying some checkboxes inside each ListView, etc. ListViews, another interesting control, we'll be able to display multiple items at a time and we can even allow users to select multiple items at a time. We can also allow the users to directly edit the ListView cells, but if you try to find any example of how to do that, it most likely be difficult. So this module is going to fill that gap. Let's quickly get to it. In this module, we will begin with understanding how to create a ListView, that's the first thing that we have to do with any control. And then we will see how we can add editable items in the ListView, and then we will see how we can make use of cell factories to create ComboBoxes or such in the ListView. We will also see the styling part of the ListView. And finally, we will also see how we can apply filters and sort the items in the ListView without having to write too much code.
Presenting Multi-column Lists with TableView Hi. Welcome to the module presenting multi-column lists with the TableView in the course JavaFX Playbook: Controls with Data Model. In this module, we will learn about TableView. A TableView is very interesting control. It allows us to view data in multiple columns and multiple rows. By the time you finish this module, you will understand from very simple to very advanced use cases such as creating a truly editable table. In this module, we will begin with understanding how to create TableViews and then we will see how to use cell value factories to display attributes of a custom class and various columns. We will also see how to add rows dynamically and then we will also see how to use cell factories. Eventually, we will need all this knowledge to create a truly editable table view. Wherein the changes you make are actually propagated with the object in memory.
Presenting Hierarchical Data Using TreeView Hi. Welcome to the final module of the course, JavaFX Playbook: Controls with Data Model. In this module, we will see how to use TreeView. All the controls you have seen so far accept only one level of data, but if you have multiple levels of data, that is, there is a parent, and there is a child, and then there is a child inside that, TableView is the only control that allows you to add multiple levels of data. All the other controls will only stop at the top level, unless you convert them to strings with the help of string converters. By end of this module, you will learn how to use TreeView and insert items into the TreeView. You will see from very simple to the complex use cases wherein you can display checkboxes for the leaf cells in a TreeView. In this module, we will begin with creating a TreeView and see how we can insert the items into the TreeView, and we will also see how to display images for a TreeView, and finally, we will also understand how to use cell factories to make the items in a TreeView editable.