javafx get resource image code example
Example 1: javafx load image from resources
Image image = new Image("/path/to/your/resource/in/your/project");
ImageView imageView = new ImageView(image);
Example 2: get image from resourcestream javafx
URL url = getClass().getResource("/drawIcon.png");
Image image = ImageIO.read(url);