I try to add an image in Javafx but when my friend try to pull it, they couldn't see the image displays (but they still can see the code lines with image add)
When adding images in JavaFX, you should consider the path of the image file. It might be due to differences in the file paths. Make sure the image is in the repo. Additionally load the images using: Image image = new Image(getClass().getResource("/path/to/your/image.png").toString());
thank you! and the other don't have to download the image on their computer right?
If you added the image to the project, preferably to the resources folder, if your teammate pulls the changes, they will automatically download the image files into their resources folder.
This usually happens when you get the file path wrong. Make sure you get the location of the image file right.
for the file paths use System.getProperty("user.dir") do get the file path for the project directory regardless of the user and + ""