Java Reference
In-Depth Information
htmlArticleSb.append("<hr />\n")
.append("<b>\n")
.append(article.title)
.append("</b><br />")
.append(article.pubDate)
.append("<br />")
.append(article.description)
.append("<br />\n")
.append("<input type=\"button\"
onclick=\"alert('")
.append(article.link)
.append("')\" value=\"View\"
/>\n");
}
String content = rssSource.toString()
+ "<form>\n" + htmlArticleSb.toString() +
"</form></body>\n";
System.out.println(content);
newsBrief.getEngine().loadContent(content);
// write to disk if not already.
DBUtils.saveRssFeed(rssFeed);
}); // end of webEngine addListener()
newsBrief.getEngine().setOnAlert((WebEvent<String>
evt) -> {
websiteView.getEngine().load(evt.getData());
}); // end of newsBrief setOnAlert()
// Left and right split pane
SplitPane splitPane = new SplitPane();
splitPane.prefWidthProperty().bind(scene.widthProperty());
splitPane.prefHeightProperty().bind(scene.heightProperty());
final VBox leftArea = new VBox(10);
final TextField urlField = new TextField();
urlField.setOnAction((ActionEvent ae) -> {
String url = urlField.getText();
Search WWH ::




Custom Search