title: How to programmatically set the color or texture of a tab label in JavaFX?
body: <p>I have a <code>TabPane</code> with several <code>Tab</code>s. If the results of an operation in the <code>Tab</code> failed, I want to set the <code>Tab</code> <code>Label</code> to a <code>Fill</code> red or perhaps the texture to hashed (for those with color blindness). I want to reset the <code>Color</code> back to its default, later.</p>
  
  <p>From reading some of the questions here, one can statically set it using a style sheet.</p>
  
  <pre><code>#MyTabPane .tab *.tab-label {
      -fx-text-fill: white;
  }
  </code></pre>
  
  <p>How would one access the <code>Tab</code> <code>label</code> and set it's color/texture dynamically?</p>
  
  <p><code>tab.setStyle("??");</code></p>
  
  <p><strong>ADDITIONS BY ELLTZ</strong></p>
  
  <p>How can one use inline Styles stated above to change the <code>Paint</code> of both the <code>Label</code> with style class <code>tab-label</code> and the <code>Button</code>(<code>StackPane</code>) also <code>tab-close-button</code></p>
  
  <p><em>code examples needed</em></p>