title: JavaFX ImageView via FXML does not work
body: <p>I have a problem with loading Images with <code>ImageView</code> on FXML.</p>
  
  <p>My controller class:</p>
  
  <pre><code>public class BoxViewController {
      @FXML
      private Label label_boxID;
  
      @FXML
      private ImageView boximage;
  
      public void initData(ObservableList&lt;BoxProperty&gt; observableList,
                           BoxService sBox, 
                           TableView tableview) {
          this.label_boxID.setText(
              String.valueOf(this.boxproperty.getPboxid()));
  
          Image image = new Image("boximage.jpg");
          this.boximage = new ImageView();
          this.boximage.setImage(image);
      }
  }
  </code></pre>
  
  <p>So, setting the label with a text works, but the image won't appear in my ImageView.
  For the ImageView, I added an ID to the FXML file:</p>
  
  <pre><code> &lt;ImageView fx:id="boximage" 
              disable="false" 
              fitHeight="150.0" fitWidth="200.0"
              layoutX="69.0" layoutY="322.0" 
              pickOnBounds="true" 
              preserveRatio="true" /&gt;
  </code></pre>
  
  <p>I'm confused why this is not working because the label works, but the image won't load.<br>
  I also checked whether <code>boximage</code> isn't null, but it isn't. There are also no Exceptions.</p>