I am trying to load an image from a file without using FileChooser . Folders:
TestProject -src --application ---(all_the_classes_i'm_using.java) -assets --drawIcon.png
I want to upload an image to the assets folder. I tried:
Image image = new Image("../assets/drawIcon.png") Image image = new Image(getClass().getResourceAsStream("../assets/drawIcon.png"))
I tried this with the path line "/TestProject/assets/drawIcon.png", but nothing. I do not understand how to download this image!
source share