Module javafx.web
Package javafx.scene.web
package javafx.scene.web
This package provides means for loading and displaying Web content. Its functionality is implemented by two core classes:
WebEngine is a non-visual component capable of
loading Web pages, creating DOM objects for them, and running scripts
inside pages.
WebView is a Node 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
-
ClassDescriptionA control that allows for users to edit text, and apply styling to this text.HTML editor skin.Represents commands that can be passed into the HTMLEditor web engine.This class describes features of a Web popup window as specified by JavaScript
window.openfunction.This class encapsulates data passed into JavaScriptprompt()function: a message and a default value.WebEngineis a non-visual object capable of managing one Web page at a time.An event indicating aWebEngineerror.WebEvent<T>WebEventinstances are passed intoEventHandlers registered with aWebEngineby JavaScript running on a Web page.TheWebHistoryclass represents a session history associated with aWebEngineinstance.