Image and ImageView
ImageView
is the basic JavaFX Node
to display images in your GUI. Image
is the class used to hold the data contained within an ImageView
. The relationship between the two is very similar to the relationship between Label
and String
.
Mastering ImageView
is fairly simple and allows you to add a lot of extra flair to your layouts. From putting images on Buttons
, to adding logos and image backgrounds, ImageView
is the essential class to know.
The Articles:
All About Image and ImageView
Image and ImageView are the two classes you’ll need to know in order to be able to put images into your layouts. This article will give you all the information you need to get started with these classes.
Image Animation with Sprites and Scrolling Backgrounds
How to use Sprites in ImageView to create animation. How to create infinite scrolling backgrounds. Even better, this article has Trolls!!