Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Before you can display an image to the screen, you need to add an ImageView node to your application. All images are displayed using the ImageView node. Think of it as the film onto which your pictures are developed. The only purpose for the ImageView node is to display your images using the Image class.
The package for the ImageView is javafx.scene.image.ImageView. You must import this package before you can use the ImageView. Add a Stage and a Scene to your script, and then import the package for an ImageView, as follows: