In an absolute path:
this.getClass().getResourceAsStream("/fileName");
this.getClass().getResource("/fileName");
or a relative path:
this.getClass().getResourceAsStream("fileName");
this.getClass().getResource("fileName");
In an absolute path:
this.getClass().getResourceAsStream("/fileName");
this.getClass().getResource("/fileName");
or a relative path:
this.getClass().getResourceAsStream("fileName");
this.getClass().getResource("fileName");