I\'m trying to access a file in my project. But getResource method returns null.
This is how my project looks like:
Use the following code, it should work.
YOUR_CLASS_HERE.class.getClass().getResource( "/xxx.png" );
e.g. Signin.class.getClass().getResource( "/xxx.png" );
Signin.class.getClass().getResource( "/xxx.png" );