I have issue with relative path to my arrow.png.
I have the following set up of directories:
--resources
--arrow.png
--Accounts.txt
--src
--Main.java
And in my Main.java I am trying to load image like this:
Image image = new Image("resources/arrow.png");
However, I am getting the following error:
Invalid URL: Invalid URL or resource not found
Which is suprising, as couple of lines above it, I load another file like this:
FileInputStream fstream = new FileInputStream("resources/Accounts.txt");
And it works..
Where am I doing mistake?