title: How to change TreeView Color in JavaFX programmatically without using css?
body: <p>I am trying to implement dark mode functionality. For that purpose I need to change the color of treeView to dark grey.
  The following code is not working.</p>
  
  <pre><code>treeView.setStyle("-fx-background-color:#242424;");
  </code></pre>
  
  <p>I am not using CSS separately. So solution like the above code will be highly appreciated.</p>