title: How to get an imageView in a fxml file
body: <p>i have this fxml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import java.lang.*?&gt;
  &lt;?import java.util.*?&gt;
  &lt;?import javafx.scene.*?&gt;
  &lt;?import javafx.scene.control.*?&gt;
  &lt;?import javafx.scene.effect.*?&gt;
  &lt;?import javafx.scene.image.*?&gt;
  &lt;?import javafx.scene.layout.*?&gt;
  &lt;?import javafx.scene.text.*?&gt;
  
  &lt;StackPane opacity="1.0" prefHeight="700.0" prefWidth="1024.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="engine.scene.ctrler"&gt;
    &lt;children&gt;
      &lt;ImageView fitHeight="701.7022094726562" fitWidth="1235.874704009025" pickOnBounds="true" preserveRatio="true" visible="true" StackPane.alignment="CENTER"&gt;
        &lt;effect&gt;
          &lt;Glow level="0.9371069182389937" /&gt;
        &lt;/effect&gt;
        &lt;image&gt;
          &lt;Image url="@../../../resources/img/bg.jpg" /&gt;
        &lt;/image&gt;&lt;/ImageView&gt;&lt;/children&gt;&lt;/stackpane&gt;
  </code></pre>
  
  <p>and i want to change width and height of my imageView any time my scene size changed .i know i should use this</p>
  
  <pre><code>  stage.widthProperty().addListener(new ChangeListener() { 
          @Override
          public void changed(ObservableValue ov, Object t, Object t1) {              
             myImageView.setFitWidth(stage.getWidth());
          }
      });
  </code></pre>
  
  <p>but i don't know how i can get ImageView from fxml file</p>