javafx image path code example
Example 1: javafx file to image
Image image = new Image("file:" + path); // "file:src/resource/photo.jpg"
Example 2: file to image javafx
Image image = new Image(new FileInputStream(selectedFile));
previewPicture.setImage(image);
Example 3: javaFX path
--module-path "${PATH_TO_FX}" --add-modules=javafx.controls,javafx.fxml,javafx.graphics