title: getResourceAsStream(); always NULL (Netbeans)
body: <p>I've spent almost 2 days in trying to load files from inside of my netbeans project, but it always gives NullPointException.</p>
  
  <p>currently my directory looks like:<br>
  JavaFXApplication:<br></p>
  
  <ul>
  <li>src<br>
  &nbsp;&nbsp;&nbsp;&nbsp;--Manifest (contains Manifest.java)<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--images (inside Manifest package aka <em>Manifest.images</em>)<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--server.jpg (inside images package)<br><br></li>
  </ul>
  
  <p>I'm trying to load the <em>server.jpg</em> from images package, but it always return <strong>NULL</strong>.<br>
  Here is the snippet of my code:<br><br></p>
  
  <pre><code>try {
  
          rect.setFill(new ImagePattern(new Image(Manifest.class.getResourceAsStream("images\\server.jpg"))));
  
      } catch (NullPointerException e) {
  
      System.out.println(Manifest.class.getResourceAsStream("server.jpg"));
  
      }
  </code></pre>
  
  <p>Exactly 2 days before, I saw this code from a YouTube Tutorial, and it doesn't worked. Try many of those solutions from here, but nothing yield for me.And suddenly it worked. Next day, tried to run the same code, and again same NULL error.<br><br>
  Can you guys please help me. I'm totally new to JavaFX. Don't have much experience with it.</p>