Example usage for javafx.scene.control Hyperlink setText

List of usage examples for javafx.scene.control Hyperlink setText

Introduction

In this page you can find the example usage for javafx.scene.control Hyperlink setText.

Prototype

public final void setText(String value) 

Source Link

Usage

From source file:UI.MainStageController.java

@FXML
/**/*from   w w w .  j a v  a 2  s  .  c o m*/
 *
 * Shows information about the software.
 */
private void showAboutAlert() {
    Hyperlink hyperlink = new Hyperlink();
    hyperlink.setText("https://github.com/jmueller95/CORNETTO");
    Text text = new Text("Cornetto is a modern tool to visualize and calculate correlations between"
            + "samples.\nIt was created in 2017 by students of the group of Professor Huson in Tbingen.\nThe group"
            + "was supervised by Caner Bagci.\n\n" + "This project is licensed under the MIT License.\n\n"
            + "For more information go to: ");

    TextFlow textFlow = new TextFlow(text, hyperlink);

    text.setWrappingWidth(500);
    aboutAlert = new Alert(Alert.AlertType.INFORMATION);
    aboutAlert.setTitle("About " + GlobalConstants.NAME_OF_PROGRAM);
    aboutAlert.setHeaderText("What is " + GlobalConstants.NAME_OF_PROGRAM);
    aboutAlert.getDialogPane().setContent(textFlow);
    aboutAlert.show();
}