Java Reference
In-Depth Information
warningMessage.setOpacity("warning".equalsIgnoreCase(evt.getData())
? 1d : 0d);
}
});
Please see the Javadocs for additional HTML web events ( WebEvent ).
17-5. Displaying Content from the Data-
base
Problem
You want to display database content in a JavaFX WebView node.
Solution
Create a JavaFX RSS reader. The RSS feed URLs will be stored in a database to be
later retrieved. Listed here are the main classes used in this recipe:
javafx.scene.control.Hyperlink
javafx.scene.web.WebEngine
javafx.scene.web.WebView
org.w3c.dom.Document
org.w3c.dom.Node
org.w3c.dom.NodeList
This recipe uses an embedded database called Derby from the Apache group at
http://www.apache.org . As a requirement, you need to download the Derby
software (it is included with NetBeans IDE). To download the latest version of the soft-
ware, visit http://db.apache.org/derby/derby_downloads.html .
Once it's downloaded, you can unzip or untar it into a directory. To compile and run
this recipe, you need to update the class path in your IDE or environment variable to
Search WWH ::




Custom Search