Java Reference
In-Depth Information
CHAPTER 17
JavaFX on the Web
JavaFX provides new capabilities to interoperate with HTML5. The underlying web
page-rendering engine in JavaFX is the popular open-source API called Webkit. Webkit
is also used in Google's Chrome and Apple's Safari browsers. HTML5 content consists
of JavaScript, CSS, Scalable Vector Graphics (SVG), and new HTML element tags. The
relationship between JavaFX and HTML5 is important because they complement one
another by drawing from each of their individual strengths. For instance, JavaFX's rich
client APIs coupled with HTML5's rich web content create a user experience resem-
bling a web application with the characteristics of desktop software. This new breed of
applications is called Rich Client Applications.
This chapter covers the following topics:
Embedding JavaFX applications in an HTML web page
Displaying HTML5 content
Manipulating HTML5 content with Java code
Responding to HTML events
Displaying content from the database
JavaFX does not replace HTML5, or the other way around. Rather, they complement
each other, and this chapter contains recipes that demonstrate the strengths of using
these two technologies together.
17-1. Embedding JavaFX Applications in
a Web Page
Search WWH ::




Custom Search