Developing a JavaFX Desktop and Web Application
This chapter will cover how to develop compelling desktop and web applications that take advantage of the multicore, hardware-accelerated GPU to deliver high-performance UI-based applications that have an amazing look and feel.
As JavaFX is totally written from the ground up in Java, some Java SE 8 built-in core libraries will be used to power our application. In addition, we will learn how to package our application as a standalone application to be launched and distributed.
Also, we will cover the essential core web APIs in any web application levered by JavaFX 8, such as javafx.scene.web.WebEngine, java.net.HttpURLConnection and javafx.scene.web.WebView.
We will discuss the relationship between JavaFX and HTML5, which is important because JavaFX’s APIs and the features of HTML5 complement one another. HTML5 is a platform for rich web content to create a user experience that resembles a RIA (Rich Internet Application) web application with the characteristics of native desktop software.
More importantly, we will go through the development of a desktop version of the Note-taking Application and then run it on the Web.
Additionally, we will cover all the required knowledge and skills to deploy the Note-taking as a web application on the desktop and the Web.
Here are the skills that will be learned during this chapter:
-
Developing and running desktop and web applications
-
Controlling application UIs
-
How to package a JavaFX 8 desktop application
-
Loading HTML5 content inside a JavaFX application
-
Sending data from JavaFX to JavaScript and vice versa
-
Deploying a JavaFX web application