title: How to set style color for a line in javafx?
body: <p>How to set style color for a line in javafx?</p>
  
  <pre><code> public void setColor(String color) {
        for (int i = 0; i &lt; 9; i++){ 
            //lines[i].setFill(Color.BLUE);
            //lines[i].setStyle("-fx-Background-color: yellow;");
            //lines[i].setStyle("-fx-color:"+ color);
           //setStyle("-fx-Foreground-color:"+ color);
        }
  
    }
  </code></pre>
  
  <p>All 4 comments do nothing the lines not colored.</p>
  
  <p>I would be happy if you could help me.</p>