BufferedImage bufferedImage = new BufferedImage(xxx); ImageView imageView = new ImageView(); Image image = bufferedImage; //Error Image image = SwingFXUtils.toFXImage(bufferedImage, null); //Correct imageView.setImage(image);
BufferedImage bufferedImage = new BufferedImage(xxx); ImageView imageView = new ImageView(); Image image = bufferedImage; //Error Image image = SwingFXUtils.toFXImage(bufferedImage, null); //Correct imageView.setImage(image);