title: How to draw arrow JavaFX? (pane)
body: <p>I need to make directed graph from undirected. I can draw line-Edge, but I don't know how to make arrow:</p>
  
  <pre><code>public class Edge extends Group {
  
  protected Cell source;
  protected Cell target;
  
  Line line;
  
  public Edge(Cell source, Cell target) {
  
      this.source = source;
      this.target = target;
  
      source.addCellChild(target);
      target.addCellParent(source);
  
      line = new Line();
  
      line.startXProperty().bind(source.layoutXProperty().add(source.getBoundsInParent().getWidth() / 2.0));
      line.startYProperty().bind(source.layoutYProperty().add(source.getBoundsInParent().getHeight() / 2.0));
  
      line.endXProperty().bind(target.layoutXProperty().add( target.getBoundsInParent().getWidth() / 2.0));
      line.endYProperty().bind(target.layoutYProperty().add( target.getBoundsInParent().getHeight() / 2.0));
  
     getChildren().addAll(line);
  }
  </code></pre>