Working with web content

The WebView component is a component that can render modern HTML pages. It's based on WebKit (https://webkit.org/), an open-source browser engine that is widely used.

WebView consists of two parts:

  • WebView itself, which is a JavaFX node and can be used in SceneGraph
  • The WebEngine class, which is responsible for all HTML and JavaScript logic
Technically, there is also a third component—a rendering engine. It's not provided by WebKit and JavaFX has its own. But developers usually do not communicate with it.

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.