title: Changing javafx button color on click?
body: <p>I know I can set a color by using the pressed pseudo selector:</p>
  
  <pre><code>myButton:pressed{}
  </code></pre>
  
  <p>Problem is, im trying to do this in code by overriding the css background color from my stylesheet by doing:</p>
  
  <pre><code>myButton.setStyle("fx-background-color: #FFF");
  </code></pre>
  
  <p>The latter fails do change the color though. Could it be that once ive set my stylesheet that I cant override it? How can I change the button color on click?</p>