This package provides means for loading and displaying Web content. Its functionality is implemented by two core classes:
javafx. is a non-visual component capable of
loading Web pages, creating DOM objects for them, and running scripts
inside pages.
javafx. is a javafx. that
presents a Web page managed by a WebEngine. Each WebView
has a WebEngine associated with it. This association is
established at the time WebView is instantiated, and cannot be
changed later.
Both WebEngine and WebView should be created and
manipulated on FX User thread.
The code snippet below shows a typical usage scenario:
WebView webView = new WebView();
WebEngine webEngine = webView.getEngine();
webEngine.load("http://javafx.com");
// add webView to the scene
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| public class | HTMLEditor
A control that allows for users to edit text, and apply styling to this text. |
| public class | HTMLEditorSkin
HTML editor skin. |
| public class | PopupFeatures
This class describes features of a Web popup window as specified by
JavaScript |
| public class | PromptData
This class encapsulates data passed into JavaScript |
| public class | WebEngine
|
| public class | WebErrorEvent
An event indicating a |
| public class | |
| public class | WebHistory
The |
| public class | WebView
|