the wrapped image
Creates a new ImageView component that is initialized with the wrapped image.
Creates a new ImageView component that is initialized with the wrapped image.
the newly created image view
A helper class that wraps a JavaFX image.
There is some functionality frequently required when dealing with icons. First, an image for the icon has to be managed. For many use cases, this is not sufficient: in order to display the image in the UI, it has to be added to a Node object, typically an ImageView. This simple helper class provides this functionality. It holds an image object and provides a factory method for creating a new ImageView.
Note, that it is intended to create always a new ImageView. It is not possible to add a single Node multiple times to the scene graph. Therefore, every time the icon is to be displayed, another ImageView has to be created.
the wrapped image