ive been rectently working with javafx. In my code i've came across an annoying feature of javafx and i was wondering if there was a way of getting around it. Through my research ive realised 'imageview' nodes dont store the value of the image eg. location. I would like to get the directory from my imageview; which itself was passed through a class call. Everytime i use 'getUrl' it always returns as null which is annoying. when i set the image to the imageview it was set from a png image file so it should have a directory. There is the file name which i need for my code. This is a simple problem, for which i have no found a fix. Please help me
Image image = holding2.getImage();
System.out.println(image.getUrl());
^^^^ this returns as null