title: I can't load an image in Javafx
body: <p>I've read many other topics about this in stackoverflow, and yet none of their solutions seem to fit my problem. There are no errors, just a blank stage, and I dont' understand why.</p>
  
  <pre><code>public void titleView(Pane pane)
  {
      Image img = new Image("file:test.png");
  
      ImageView title = new ImageView(img);
      title.setImage(img);
      title.setLayoutX(569);
      title.setLayoutY(146);
      title.fitHeightProperty().add(100);
      title.fitWidthProperty().add(100);
      title.setVisible(true);
  
      pane.getChildren().add(title);
  
      System.out.println("success!!!");        
  }
  </code></pre>
  
  <p>This is the method I've made. The "test.png" file is just a red 100x100 picture made in paint. It's located in the project and in a folder I've made: res/textures/test.png
  I did remember to build path to it</p>
  
  <pre><code>Pane pane = new Pane();
  titleView(pane);
  </code></pre>
  
  <p>I hope somebody can help, thanks</p>