Hi, this is my first question on this forum!
My problem is that I want to load an Image from the source directory in Canavas' paint() method.
My code is currently (in a try/catch)
Where imageLocation leads to an image on my HDD
("C:\\Users\\Vladde\\Documents\\Folders-Files\\folder.png").
I've previously made a small program which loads images from the source dir without any problems, and the code is:
But when I tried putting in:
I get the exception:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null!
The folder setup are the same, so I'm guessing the problem lies within the code.
All help is very appreciated. Thanks.