title: Adding an image as a child to a StackPane (scaling issue)
body: <p>I am trying to add an image as child to a <code>StackPane</code>. For some reason I can't do it directly so what I do instead is create a <code>Label</code> and then add it. However, the image is really big so I try to scale it down the size of the <code>StackPane</code> by binding it. This also doesn't work and the image displayed is still not scaled down. Any ideas how to fix this?</p>
  
  <pre><code>...
  StackPane square = new StackPane();
  Label Queen = new Label();
  Queen.setGraphic(new ImageView(queen));
  Queen.prefHeightProperty().bind(square.heightProperty());
  Queen.prefWidthProperty().bind(square.widthProperty());
  
  //Only want to show the image inside a particular StackPane
  if(row == posRow &amp;&amp; col == posColumn) 
      square.getChildren().add(Queen);
  ...
  </code></pre>