title: JavaFX not changing Scene background in Jar
body: <p>I have 2 methods:</p>
  
  <p><a href="https://i.stack.imgur.com/X0bPv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X0bPv.png" alt="enter image description here"></a></p>
  
  <p>They seems to be working just fine, in development mode, but when I generate my jar, when I click on the button that calls the <code>switchToTranslation</code> method it does not change the background. I checked the jar file and it is there, the images.</p>
  
  <p>I also have this in my CSS file:</p>
  
  <pre><code>#main{
      -fx-background-image: url("../images/mainBackground.jpg");
  }
  </code></pre>
  
  <p>but it will get overwritten anyway once the user presses the button.</p>