title: JavaFX ImageView with label in front of it
body: <p>I want to have ImageView which would have label in front of it at centre, but can't figure out which parent layout to use to achieve this.</p>
  
  <p>What I tried so far:</p>
  
  <pre><code>&lt;AnchorPane ...&gt;
  &lt;children&gt;
      &lt;Pane layoutX="350" layoutY="270" prefHeight="300" prefWidth="300"&gt;
          &lt;children&gt;
              &lt;ImageView fitHeight="300" fitWidth="300"&gt;
                  &lt;image&gt;
                      &lt;Image url="someimage.png" /&gt;
                  &lt;/image&gt;
              &lt;/ImageView&gt;
          &lt;/children&gt;
      &lt;/Pane&gt;
      &lt;Pane layoutX="350" layoutY="270" prefHeight="300" prefWidth="300"&gt;
          &lt;children&gt;
              &lt;Label alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" text="num" /&gt;
          &lt;/children&gt;
      &lt;/Pane&gt;
      &lt;more elements/&gt;
   &lt;/children&gt;
  </code></pre>
  
  <p></p>
  
  <p>Example what I want (only heart with text):</p>
  
  <p><a href="https://i.stack.imgur.com/Eqatg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eqatg.jpg" alt="enter image description here"></a></p>