title: Add hyperlink inside a textarea in JavaFX
body: <p>I am trying to add a hyperlink (which will open a text file onclick) inside a textarea in JavaFX.
  So far I have written the code as below:</p>
  
  <pre><code>Hyperlink link = new Hyperlink();
      link.setText("Data Sheet");
      link.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
          @Override
          public void handle(ActionEvent e) {
              try {
                  java.awt.Desktop.getDesktop().browse(
                          java.net.URI.create("MY text file"));
              } catch (IOException e1) {
                  e1.printStackTrace();
              }
          }
      });
  mytxtarea.appendText("Please cleck here "+link);
  </code></pre>
  
  <p>This code is not working. Actually the appendtext is not working.Please help.</p>