return vbox;
}
private Hyperlink newHyperlink(VBox vbox, String label, String path, Boolean isUrl){
Hyperlink hl1 = new Hyperlink(label);
hl1.setStyle("-fx-text-fill: #f5f5f5;");
hl1.setUserData("file:///" + path);
VBox.setMargin(hl1, new Insets(0, 0, 0, 8));
vbox.getChildren().add(hl1);
if (isUrl){
hl1.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent e) {
eng.load(((String)((Control)e.getTarget()).getUserData()));
}
});
} else {
hl1.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent e) {
String filePath = ((String)((Control)e.getTarget()).getUserData());
System.out.println("newpath: " + filePath);
String sourceText = setSourceText(filePath);