Java Reference
In-Depth Information
}); // end of scene.setOnDragOver()
// Dropping over surface
scene.setOnDragDropped((DragEvent event) -> {
Dragboard db = event.getDragboard();
boolean success = false;
HBox rowBox = new HBox(20);
if (db.hasUrl()) {
if
(!hyperLinksMap.containsKey(db.getUrl())) {
final Hyperlink jfxHyperLink
= createHyperLink(db.getUrl(), webEngine);
hyperLinksMap.put(db.getUrl(),
jfxHyperLink);
rowBox.getChildren().add(jfxHyperLink);
leftArea.getChildren().add(rowBox);
}
webEngine.load(db.getUrl());
}
event.setDropCompleted(success);
event.consume();
}); // end of scene.setOnDragDropped()
leftArea.setAlignment(Pos.TOP_LEFT);
// Upper and lower split pane
SplitPane splitPane2 = new SplitPane();
splitPane2.setOrientation(Orientation.VERTICAL);
splitPane2.prefWidthProperty().bind(scene.widthProperty());
splitPane2.prefHeightProperty().bind(scene.heightProperty());
HBox centerArea = new HBox();
centerArea.getChildren().add(newsBrief);
HBox rightArea = new HBox();
rightArea.getChildren().add(websiteView);
Search WWH ::




Custom Search