Java SE: Building Your First JavaFX Application

This course will provide you with a quick introduction to basic JavaFX features and help you build your first JavaFX Application.
Course info
Rating
(67)
Level
Beginner
Updated
Oct 3, 2016
Duration
2h 3m
Table of contents
Course Overview
Introduction
Building the UI Foundation with Containers and Controls
Accelerating UI Development with FXML and Scene Builder
Binding Data and Properties to UI Elements
Reacting to User Operations in the UI
Persisting Data
Description
Course info
Rating
(67)
Level
Beginner
Updated
Oct 3, 2016
Duration
2h 3m
Description

JavaFX provides a lightweight, hardware-accelerated Java GUI platform. This course, Java SE: Building Your First JavaFX Application, teaches you how to get started with JavaFX. Beginning from a clean slate, this course shows how a developer can set up their own development environment and start writing desktop applications from the first module. It also teaches you how to develop applications that react to the user events. This course wraps up by talking about persisting data, and how the tasks can be stored in an XML file to be shared across sessions. By the time you finish the course, you will be able to develop your own Desktop applications with JavaFX, which is quite a departure from the boring command line applications you have been developing since writing a hello world program in Java.

About the author
About the author

Buddha Jyothiprasad is an Author with Pluralsight and has more than 10 years of experience in software development. Previously worked with IBM & Oracle and now works as a Developer at Amazon.

More from the author
JavaFX Playbook: Controls with Data Model
Intermediate
2h 58m
Aug 31, 2018
JavaFX Playbook - Labeled and Text Controls
Intermediate
2h 20m
May 11, 2018
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone. This is Buddha. Welcome to my course: Building your first JavaFX application. Being a java developer for almost 9 years working on web services and web applications, occasionally I'll get my hands dirty by developing desktop applications to make my day-to-day tasks easier. The task of developing desktop applications has become a cakewalk with the rise of JavaFX and its inclusion in JDK 8 can provide it even further. We can now develop applications using JavaFX and be sure they work the same way in any operating system. In this course, we are going to learn how to get started and install JDK 8. We understand the usage of FXML for creating user interfaces and learn how to create the FXML files using scene builder which we will be installing and continuing to work with Netbeans IDE. We will understand the property binding framework to learn how to link different GUI controls and properties. We will progress further to learn about event handling mechanisms. And finally, we will understand how to process the data to make our application remember the task created across sessions. Much more importantly, we will be learning all the essential concepts of JavaFX in practical point of view while building the application named Do-It. Do-It will let you add tasks and keep track of their progress. By the end of this course, you will have created the Do-It application that can be run in windows, mac, as well as linux. Once done, you will be comfortable with creating desktop applications for your needs in future. Before beginning the course, all you should be familiar with is basic Java and XML. The course is designed in a generic fashion so that you can follow along to the instructions using the IDE of your choice. I hope you will join me in this journey and learn JavaFX.

Introduction
Hi everyone! I'm Buddha from Pluralsight. JavaFX is now the preferred choice for the scrub development platform in Java Ecosystem beating Swing and AWT. In this course, I'm going to show you how to build your first desktop application using JavaFX to grab the attention and impress your consult colleagues by flashing your fancy graphical user interface. We will build a simple Todo application progress simply from scratch and add functionalities while I introduce you various concepts of JavaFX application. We can add tasks to it and keep track of their percentage completion and priorities. In this module, I'm going to teach what JavaFX is and how to set up development environment. Once the environment is set, we will proceed to writing the Hello World program. We will then repeat the Hello World program using NetBeans IDE. And finally we will also take a look at the life cycle of JavaFX application.

Building the UI Foundation with Containers and Controls
Hello. Welcome to our second module of building your first JavaFX application. I have demonstrated how to start with JavaFX in the previous module. In this module, we will go further and explore various new concepts that are fundamental to any JavaFX application. We shall go through various components of a JavaFX UI application in this module. We shall begin with understanding the top level containers such as states and C. From this, we will proceed to other containers such as Grid Pane, Border Pane, HBox. Once we have understood the containers, we will learn about the controls that go inside the containers. I will demonstrate basic text box, label, and button extra and go on to teach more complex control named table view.

Accelerating UI Development with FXML and Scene Builder
Hi, this is Buddha. Welcome to our third module of building your first Java FX application: Accelerating UI Development with FXML & Scene Builder. We have learned how to build user interfaces using Java FX API in the previous modules. We will now look at a different way of creating user interfaces, the declarative creation. We will first begin by understanding the problems in our existing approach and the pitfalls. We will proceed to an alternative approach to creating user interfaces using FXML. We shall begin by understanding what FXML is and how to create UI using it. Scene Builder is an application that helps us create FXML without too much of handwriting. We will install it and learn how to create an FXML using Scene Builder.

Binding Data and Properties to UI Elements
Hi, I'm Buddha. Welcome to forth modUle of the course Building Your First JavaFX Application, Binding Data and Properties to UI Elements. Previous modules have taken you through various concepts of creating user interfaces. In this module, I will introduce you to properties and branding framework which is a non visual part of JavaFX framework. We will get an overview of what properties are and two type of properties we have. Read/Write and Read/Only. We will also learn Properties Change's trajection mechanism in JavaFX. We shall then proceed to Bindings and Understanding Unidirectional and Bidirectional bindings available in JavaFX. We will then look at high level bindings using Flu and API, and low level binding to solve more complex problems. We will also learn how to bind our models properties with user interface to get an interactive application. Finally, we will learn about JavaFX collections which are observable and use the knowledge to display the tasks in the TableView, and implement other interesting features of a UI.

Reacting to User Operations in the UI
Hi I am Buddha. Welcome to fifth module of the course, building your first Java FX application. Reacting to user operations in UI. Last module introduced you to the world of binding properties with UI so that UI or properties get updated automatically when the other changes. In this module, we will learn about event handling like reacting to the button clicks etcetera to take our learning forward and completing the do-it application. We will get an understanding of what an event is. We will see examples of several kinds of input events and we will understand how to write event filters. We will then have a look at what event handlers are. Before wrapping up events, we will also understand what action events are and how to add or update tasks. Finally we will understand how to use alert dialogs.

Persisting Data
Hi, I'm Buddha from Pluralsight. Welcome to the final module of course "Building Your First Java FX Application: Persisting Data. " Last module taught you how to respond to user actions on applications user interface. User can add or abduct tasks, as long as the user doesn't close the application. Once closed, all his progress is lost, as the application will be open without any tasks. We need to be able to save the data and bring them back when the user reopens the application. We do not have much theory to cover in this module. We shall first analyze our options to store data, and then we implement save on close, and also learn about method references while doing so. Finally, we will understand and implement how to load tasks on startup, with which we will be finishing your first Java FX application.