I have an image I screenshot from the primary monitor and I want to add it to a Java FX ImageView as so:
ImageView
@FXML protected ImageView screenshot()
You can use
Image image = SwingFXUtils.toFXImage(capture, null);