Javafx Load Image из ресурсов
Image image = new Image("/path/to/your/resource/in/your/project");
ImageView imageView = new ImageView(image);
YaKiCode
Image image = new Image("/path/to/your/resource/in/your/project");
ImageView imageView = new ImageView(image);
URL url = getClass().getResource("/drawIcon.png");
Image image = ImageIO.read(url);