title: javafx change css at runtime
body: <p>Is it possible to change css for a JavaFX application while it is running?  </p>
  
  <p>The effect I am looking for is changing skins or themes at the click of a button.  </p>
  
  <p>The UI is in an <code>FXML</code> file if that makes any difference.</p>
  
  <p>I have tried</p>
  
  <pre><code>Scene.getStylesheets()
    .add(getClass().getResource(skinFileName).toExternalForm()); 
  </code></pre>
  
  <p>which has no effect.</p>
  
  <p>thanks</p>