title: Java 7 to Java 8 issue with setting background color of TextArea and StyleSheets/css
body: <p>I had a Java FXML application functioning in Java 7u51 that I built in NetBeans 7.4.
  I have installed Java 8 and NetBeans 8. 
  I recreated my little application in Java 8/NetBeans 8.  Everything is working except some of the css styling. Specifically, I have a Text Area.  </p>
  
  <p>Here is the Text Area FXML:</p>
  
  <pre><code>&lt;TextArea layoutX="1" layoutY="230" minHeight="120" minWidth="320" editable="false" fx:id="eventWindow" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.bottomAnchor="0.0"/&gt;
  </code></pre>
  
  <p>Here is the corresponding css styling:</p>
  
  <pre><code>#eventWindow {
      -fx-background-color: black;
      -fx-text-fill: white;
  }
  </code></pre>
  
  <p>When I run the application, the background of my text area stays white! What's frustrating is that other things from my css file are behaving as they should.  I have already tried the following:</p>
  
  <p>1) I tried putting this in my css:</p>
  
  <pre><code>.events {
      -fx-background-color: black;
      -fx-text-fill: white;  
  }
  </code></pre>
  
  <p>...and adding 'styleclass="events"' into my FXML.</p>
  
  <p>2) and I tried:</p>
  
  <pre><code>.textarea {
      -fx-background-color: black;
      -fx-text-fill: white;  
  }
  </code></pre>
  
  <p>no dice on either of those.</p>
  
  <p>I have also double-checked to make sure that nothing could be overriding it. And... it's working just fine in Java 7u51.</p>
  
  <p>I know this is not the most critical thing on the planet... but it's driving me nuts!</p>
  
  <p>Thanks in advance!
  -Adeena</p>