Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Using Images > The ImageView Node

The ImageView Node

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:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint