title: Style JavaFX components WITHOUT CSS
body: <p>Is it possible to style JavaFX components without CSS? I mean: can I achieve same what I could achieve with CSS without CSS? By "without CSS" I mean "without CSS strings" (stuff you put in <code>setStyle(String)</code>.</p>
  
  <p>It seems very inefficient to me to update style by creating new style strings. To dynamically change background color to white (not known beforehand) in following style I would have to replace it with regex or concate strings.</p>
  
  <pre><code>-fx-background-color: red;
  -fx-border-color: black;
  -fx-border-width: 1;
  </code></pre>
  
  <p>I believe that internally these strings will be parsed to some structures/objects anyway so why aren't these structures exposed?</p>
  
  <p>I'm very new to JavaFX. I know I could use CSS inheritance but it isn't silver bullet and there would still be some string concatenation.</p>