We can load web content from a URL by using WebEngine's load( ) method.
The WebEngine uses background threads, adheres to an event-based programming model.
A web engine can load web content asynchronously from a remote web server and notify handler code when the content is finished loading.
The following code loads HTML content from a remote web server in a background worker thread.
To monitor or determine whether the worker thread has finished a javafx.beans.value.ChangeListener is added to the state property.