title: JavaFX Tooltip customisation
body: <p>I encountered the following issue using JavaFX.</p>
  
  <p>Redefinition of tooltip style using stylesheet works in Java Scene Builder.</p>
  
  <p>Redefinition of tooltip style at execution in eclipse with the same stylesheet included in FXML file generated from scene builder with</p>
  
  <pre><code>&lt;stylesheets&gt;
      &lt;URL value="@../style/myCSS.css" /&gt;
  &lt;/stylesheets&gt;
  </code></pre>
  
  <p>does <strong>not</strong> work (any other property redefinition works).</p>
  
  <p>Redefinition of tooltip style at execution in eclipse with same stylesheet using code instruction :</p>
  
  <pre><code>scene.getStylesheets().add(this.getClass().getResource("/style/myCSS.css").toExternalForm());
  </code></pre>
  
  <p>works properly.</p>
  
  <p>Stylesheet used (myCSS.css):</p>
  
  <pre><code>.tooltip {
      -fx-background-radius: 2 2 2 2;
      -fx-background-color: linear-gradient(#FFFFFF, #DEDEDE);
  }
  
  .page-corner {
      -fx-shape: " ";
  }
  
  AnchorPane {
      -fx-background-color: firebrick;
  }
  </code></pre>
  
  <p>FXML file used:</p>
  
  <pre><code>&lt;AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="91.0" prefWidth="200.0" xmlns:fx="http://javafx.com/fxml"&gt;
    &lt;children&gt;
      &lt;Button layoutX="72.0" layoutY="35.0" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"&gt;
        &lt;tooltip&gt;
          &lt;Tooltip text="Tootip Text" /&gt;
        &lt;/tooltip&gt;
      &lt;/Button&gt;
    &lt;/children&gt;
    &lt;stylesheets&gt;
      &lt;URL value="@../style/myCSS.css" /&gt;
    &lt;/stylesheets&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>Edit: In other words I want to be abe to declare my stylesheet in the FXML file. Doing so seems to work for any property redefinition (AnchorPane background color in this case) except tooltips.</p>